From: Ralph Ronnquist <rrq@rrq.au>
Date: Sat, 21 Sep 2024 11:57:42 +0000 (+1000)
Subject: fix touch-up to mark as netinstall
X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=ebe9a4aa641ea84bd2c524c52f10c55db4192727;p=rrq%2Fbespoke-installer.git

fix touch-up to mark as netinstall
---

diff --git a/build-installer.sh b/build-installer.sh
index a3549e0..ecb04f9 100755
--- a/build-installer.sh
+++ b/build-installer.sh
@@ -182,14 +182,20 @@ apt-ftparchive \
     -o APT::FTPArchive::Release::Components="main" \
     release $MEDIA/dists/$DISTNAME > $MEDIA/dists/$DISTNAME/Release
 ln -s $DISTNAME $MEDIA/dists/stable
-#-- Final media touch-up as expected by bootstrap-base
-mkdir -p $MEDIA/.disk/
+
+#-- Final media touch-up as expected by udebs
 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
+heredoc $MEDIA/.disk/base_installable <<EOF
+EOF
+heredoc $MEDIA/.disk/cd_type <<EOF
+not_complete
+EOF
+heredoc $MEDIA/.disk/info <<EOF
+$(date +"Devuan GNU/Linux $DISTVERS $DISTNAME $ARCH - bespoke %Y%m%d")
+EOF
+heredoc $MEDIA/md5sum.txt <<EOF
+$(cd $MEDIA ; md5sum $( find . -type f -printf "%P\n" ))
+EOF
 
 #-- Prepare a squashfs of $MEDIA into $INITRD.
 fakeroot mksquashfs $MEDIA $INITRD/pool.squashfs