From 578c2cffe028d5a1ff6297019d8bd4a7c0af822a Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Tue, 17 Sep 2024 20:43:12 +1000 Subject: [PATCH] Cleanup patching. Add loop0 as possible media device. --- build-installer.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/build-installer.sh b/build-installer.sh index 92ae627..8dcfa78 100755 --- a/build-installer.sh +++ b/build-installer.sh @@ -101,9 +101,11 @@ EOF # # The purpose of using busybox-static for /bin/sh is for installation # of libc6, which has a troublesome preinst script (that can and -# should be ignored in this use case). When busybox-udeb the script is -# replaced by a symbolic link to that binary. But libc6 is then -# already installed +# should be ignored in this use case), and for an /sbin/losetup +# binary. When busybox-udeb is installed the /bin/sh script is +# replaced by a symbolic link to the new busybox. But libc6 is then +# already installed, and /sbin/losetup is retained (due to being hard +# link). target_dpkg -E --unpack $(debs busybox-static) executable $INITRD/bin/sh < $INITRD/etc/default-release mkdir $INITRD/etc/console-setup mkdir -p $INITRD/cdrom -sed 's/\(jessie.|ascii\))/\1|daedalus)/' -i \ - $INITRD/usr/share/debootstrap/scripts/daedalus -#sed '/base-passwd/s/x/cat mawk base-/' -i \ -# $INITRD/usr/share/debootstrap/scripts/daedalus - +# Add a udev rule to recognize /dev/loop0 as possible media device +heredoc $INITRD/lib/udev/rules.d/82-loop0-is-media.rules <