Import Debian version 20210216
live-build (1:20210216) unstable; urgency=medium
.
[ Raphaël Hertzog ]
* Add symlinks to support kali releases
.
[ Roland Clobus ]
* Reproducible fix for glibc
.
[ Ryan Finnie ]
* binary_syslinux: Do not modify grub theme.txt if grub/splash.png
exists
* Restore_package_cache: Handle existing but empty packages directory
.
[ Roland Clobus ]
* The local LIVE_BUILD wins over the system live-build for the list of
udeb inclusions. Only copy when the distribution is known
* The local LIVE_BUILD wins over the system live-build for the list of
udeb exclusions
* lilo is not available any more in Bullseye (and newer), see #973850
* Adding symlink for udeb data for bullseye
.
[ Luca Boccassi ]
* Fix build on architecture without syslinux (Closes: #982746)
* autopkgtest: restrict to amd64 and i386 for now
.
[ Roland Clobus ]
* mkfs.msdos needs at most 32 bits for the -i argument. Use the
hexadecimal version of SOURCE_DATE_EPOCH, limited to the lower 32 bits
Luca Boccassi authored 3 years ago
Raphaël Hertzog committed 3 years ago
|
0 |
live-build (1:20210216) unstable; urgency=medium
|
|
1 |
|
|
2 |
[ Raphaël Hertzog ]
|
|
3 |
* Add symlinks to support kali releases
|
|
4 |
|
|
5 |
[ Roland Clobus ]
|
|
6 |
* Reproducible fix for glibc
|
|
7 |
|
|
8 |
[ Ryan Finnie ]
|
|
9 |
* binary_syslinux: Do not modify grub theme.txt if grub/splash.png
|
|
10 |
exists
|
|
11 |
* Restore_package_cache: Handle existing but empty packages directory
|
|
12 |
|
|
13 |
[ Roland Clobus ]
|
|
14 |
* The local LIVE_BUILD wins over the system live-build for the list of
|
|
15 |
udeb inclusions. Only copy when the distribution is known
|
|
16 |
* The local LIVE_BUILD wins over the system live-build for the list of
|
|
17 |
udeb exclusions
|
|
18 |
* lilo is not available any more in Bullseye (and newer), see #973850
|
|
19 |
* Adding symlink for udeb data for bullseye
|
|
20 |
|
|
21 |
[ Luca Boccassi ]
|
|
22 |
* Fix build on architecture without syslinux (Closes: #982746)
|
|
23 |
* autopkgtest: restrict to amd64 and i386 for now
|
|
24 |
|
|
25 |
[ Roland Clobus ]
|
|
26 |
* mkfs.msdos needs at most 32 bits for the -i argument. Use the
|
|
27 |
hexadecimal version of SOURCE_DATE_EPOCH, limited to the lower 32 bits
|
|
28 |
|
|
29 |
-- Luca Boccassi <[email protected]> Tue, 16 Feb 2021 21:25:05 +0000
|
|
30 |
|
0 | 31 |
live-build (1:20210122) unstable; urgency=medium
|
1 | 32 |
|
2 | 33 |
[ Raphaël Hertzog ]
|
0 | 0 |
Tests: build-default-image
|
1 | 1 |
Depends: live-build,
|
2 | 2 |
Restrictions: needs-root, allow-stderr, needs-internet
|
|
3 |
Architecture: amd64 i386
|
3 | 4 |
|
4 | 5 |
Tests: build-kali-image
|
5 | 6 |
Depends: live-build, git, ca-certificates, curl, apt-utils, bzip2, cpio, file, wget, xz-utils
|
6 | 7 |
Restrictions: needs-root, allow-stderr, flaky, needs-internet
|
|
8 |
Architecture: amd64 i386
|
20 | 20 |
if [ "$(stat --printf %d ${DIRECTORY}/)" = "$(stat --printf %d chroot/var/cache/apt/archives/)" ]
|
21 | 21 |
then
|
22 | 22 |
# with hardlinks
|
23 | |
find "${DIRECTORY}" -name "*.deb" | xargs cp -fl -t chroot/var/cache/apt/archives
|
|
23 |
find "${DIRECTORY}" -name "*.deb" -print0 | xargs -0 --no-run-if-empty cp -fl -t chroot/var/cache/apt/archives
|
24 | 24 |
else
|
25 | 25 |
# without hardlinks
|
26 | |
find "${DIRECTORY}" -name "*.deb" | xargs cp -t chroot/var/cache/apt/archives
|
|
26 |
find "${DIRECTORY}" -name "*.deb" -print0 | xargs -0 --no-run-if-empty cp -t chroot/var/cache/apt/archives
|
27 | 27 |
fi
|
28 | 28 |
fi
|
29 | 29 |
fi
|
130 | 130 |
esac
|
131 | 131 |
|
132 | 132 |
#FIXME review the netboot case
|
133 | |
for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
|
|
133 |
for LOCATION in /usr/share/live/build/data/debian-cd "${LIVE_BUILD}/data/debian-cd"
|
134 | 134 |
do
|
135 | |
if [ -e "${LOCATION}" ]
|
|
135 |
if [ -e "${LOCATION}/${LB_PARENT_DISTRIBUTION_BINARY}" ]
|
136 | 136 |
then
|
137 | 137 |
case "${LB_DEBIAN_INSTALLER}" in
|
138 | 138 |
cdrom)
|
257 | 257 |
blocks=\$(((\$size / 1024 + 55) / 32 * 32 ))
|
258 | 258 |
|
259 | 259 |
rm -f ${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img
|
260 | |
mkfs.msdos -C "${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img" \$blocks -i ${SOURCE_DATE_EPOCH} >/dev/null
|
|
260 |
# The VOLID must be (truncated to) a 32bit hexadecimal number
|
|
261 |
mkfs.msdos -C "${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img" \$blocks -i $(printf "%08x" $((${SOURCE_DATE_EPOCH}%4294967296))) >/dev/null
|
261 | 262 |
mmd -i "${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img" ::EFI
|
262 | 263 |
mmd -i "${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img" ::EFI/boot
|
263 | 264 |
mcopy -m -o -i "${_CHROOT_DIR}/grub-efi-temp/boot/grub/efi.img" ${_CHROOT_DIR}/grub-efi-temp/EFI/boot/*.efi \
|
65 | 65 |
XORRISO_OPTIONS="-R -r -J -joliet-long -l -cache-inodes -iso-level 3"
|
66 | 66 |
|
67 | 67 |
# Handle xorriso live-build specific options
|
68 | |
if [ "${LB_IMAGE_TYPE}" = "iso-hybrid" ]
|
|
68 |
if [ "${LB_IMAGE_TYPE}" = "iso-hybrid" ] && [ "${LB_BOOTLOADER_BIOS}" = "syslinux" ]
|
69 | 69 |
then
|
70 | 70 |
XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -partition_offset 16"
|
71 | 71 |
fi
|
312 | 312 |
fi
|
313 | 313 |
rm -f "${_TARGET}/splash.svg"
|
314 | 314 |
|
315 | |
# Tweak the grub theme to reuse the syslinux background image
|
316 | |
if [ -e binary/boot/grub/live-theme/theme.txt ]; then
|
|
315 |
# Tweak the grub theme to reuse the syslinux background image if grub doesn't have its own
|
|
316 |
if [ -e binary/boot/grub/live-theme/theme.txt ] && [ ! -e binary/boot/grub/splash.png ]; then
|
317 | 317 |
sed -i -e 's|^desktop-image:.*|desktop-image: "/isolinux/splash.png"|' \
|
318 | 318 |
-e 's|^title-text:.*|title-text: ""|' \
|
319 | 319 |
binary/boot/grub/live-theme/theme.txt
|
74 | 74 |
|
75 | 75 |
# Stuff it into a FAT filesystem, making it as small as possible. 24KiB
|
76 | 76 |
# headroom seems to be enough; (x+31)/32*32 rounds up to multiple of 32.
|
|
77 |
# The VOLID must be (truncated to) a 32bit hexadecimal number
|
77 | 78 |
mkfs.msdos -C "$outdir/efi.img" \
|
78 | 79 |
$(( ($(stat -c %s "$workdir/boot$efi_name.efi") / 1024 + 55) \
|
79 | |
/ 32 * 32 )) -i ${SOURCE_DATE_EPOCH}
|
|
80 |
/ 32 * 32 )) -i $(printf "%08x" $((${SOURCE_DATE_EPOCH}%4294967296)))
|
80 | 81 |
mmd -i "$outdir/efi.img" ::efi
|
81 | 82 |
mmd -i "$outdir/efi.img" ::efi/boot
|
82 | 83 |
# Set the timestamp of the .efi file
|
290 | 290 |
|
291 | 291 |
case "${LB_ARCHITECTURE}" in
|
292 | 292 |
amd64)
|
293 | |
DI_REQ_PACKAGES="lilo grub-pc"
|
|
293 |
DI_REQ_PACKAGES="grub-pc"
|
294 | 294 |
DI_PACKAGES="linux-image-amd64"
|
295 | 295 |
;;
|
296 | 296 |
|
297 | 297 |
i386)
|
298 | |
DI_REQ_PACKAGES="lilo grub-pc"
|
|
298 |
DI_REQ_PACKAGES="grub-pc"
|
299 | 299 |
DI_PACKAGES="linux-image-686-pae"
|
300 | 300 |
;;
|
301 | 301 |
|
|
614 | 614 |
Echo_debug "Generating exclude list"
|
615 | 615 |
|
616 | 616 |
# Excluding udebs
|
617 | |
for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
|
|
617 |
for LOCATION in /usr/share/live/build/data/debian-cd "${LIVE_BUILD}/data/debian-cd"
|
618 | 618 |
do
|
619 | |
if [ -e "${LOCATION}" ]
|
|
619 |
if [ -e "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}" ]
|
620 | 620 |
then
|
621 | 621 |
grep -v "^#" "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/udeb_exclude" > exclude || true
|
622 | 622 |
grep -v "^#" "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/exclude-udebs" >> exclude || true
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
set -e
|
|
3 |
|
|
4 |
# Remove the non-reproducible file that is created by ldconfig
|
|
5 |
#
|
|
6 |
# The file does not need to exist, see elf/cache.c:load_aux_cache
|
|
7 |
# The file and folder will be recreated when needed, see elf/cache.c:save_aux_cache
|
|
8 |
rm -fr /var/cache/ldconfig
|