From 91e33f491b26056d2c1b73c0cf90e82ff0bde993 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Fri, 20 Sep 2024 15:52:02 +1000 Subject: [PATCH] Added some more media priming (md5sum etc) --- build-installer.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build-installer.sh b/build-installer.sh index 8f7ba76..3bfc983 100755 --- a/build-installer.sh +++ b/build-installer.sh @@ -140,7 +140,7 @@ mkdir $INITRD/etc/console-setup mkdir -p $INITRD/cdrom # Add a udev rule to recognize /dev/loop0 as possible media device -heredoc $INITRD/lib/udev/rules.d/82-loop0-is-media.rules < $MEDIA/dists/$DISTNAME/Release ln -s $DISTNAME $MEDIA/dists/stable #-- Final media touch-up as expected by bootstrap-base -mkdir $MEDIA/.disk/ +mkdir -p $MEDIA/.disk/ +mkdir -p $MEDIA/debian touch $MEDIA/.disk/base_installable echo full_cd > $MEDIA/.disk/cd_type date +"Devuan GNU/Linux $DISTVERS $DISTNAME $ARCH - bespoke %Y%m%d" \ > $MEDIA/.disk/info +(cd $MEDIA ; md5sum $( find . -type f -printf "%P\n" )) > $MEDIA/md5sum.txt + #-- Prepare a squashfs of $MEDIA into $INITRD. fakeroot mksquashfs $MEDIA $INITRD/pool.squashfs -- 2.39.2