From: Ralph Ronnquist <rrq@rrq.au>
Date: Thu, 19 Sep 2024 11:48:09 +0000 (+1000)
Subject: Add more dpkg preparation (for amd64)
X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=8df2c0faf01e31f0eee43b89a5a5eb63e0de57d0;p=rrq%2Fbespoke-installer.git

Add more dpkg preparation (for amd64)
---

diff --git a/build-installer-functions.sh b/build-installer-functions.sh
index 7d50e4d..fb7d261 100644
--- a/build-installer-functions.sh
+++ b/build-installer-functions.sh
@@ -189,7 +189,8 @@ target_dpkg() {
     [ -z "$X" ] && die "** Aborting"
     cd $INITRD
     if [ ! -f etc/debconf.conf ] ; then
-	cat /etc/debconf.conf | heredoc etc/debconf.conf
+	heredoc etc/dpkg/origins/default < /etc/dpkg/origins/default 
+	heredoc etc/debconf.conf < /etc/debconf.conf
 	local F
 	for F in $(sed '/^Filename:/!d;s/[^ ]* /./' etc/debconf.conf) ; do
 	    [ -f "$F" ] || echo -n | heredoc $F