From abed552d5b2c6fbaaf18025f14cc8e00fa82508b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 28 Sep 2007 20:55:14 +0200 Subject: [PATCH] Adjusting to live-initramfs. --- scripts/live-bottom/24preseed | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/live-bottom/24preseed b/scripts/live-bottom/24preseed index 3d0bdaf..a8f5a46 100755 --- a/scripts/live-bottom/24preseed +++ b/scripts/live-bottom/24preseed @@ -52,10 +52,12 @@ then done fi -reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive casper)" -if [ "${reply#0 }" != "$reply" ]; then - reply="${reply#0 }" - sh -c "$reply" +reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-initramfs)" + +if [ "${reply#0 }" != "${reply}" ] +then + reply="${reply#0 }" + sh -c "${reply}" fi # Clear out debconf database backup files to save memory.