diff options
Diffstat (limited to 'scripts/build/lb_chroot_preseed')
-rwxr-xr-x | scripts/build/lb_chroot_preseed | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/lb_chroot_preseed b/scripts/build/lb_chroot_preseed index f100ade1c..893b0f5ba 100755 --- a/scripts/build/lb_chroot_preseed +++ b/scripts/build/lb_chroot_preseed @@ -39,7 +39,8 @@ Check_lockfile .lock Create_lockfile .lock if ls config/preseed/*.preseed > /dev/null 2>&1 || \ - ls config/preseed/*.preseed.chroot > /dev/null 2>&1 + ls config/preseed/*.preseed.chroot > /dev/null 2>&1 || \ + ls chroot/root/packages.chroot.cfg > /dev/null 2>&1 then # Check dependency Check_package chroot/usr/bin/debconf-set-selections debconf @@ -47,7 +48,7 @@ then # Install dependency Install_package - for PRESEED in config/preseed/*.preseed config/preseed/*.preseed.chroot + for PRESEED in config/preseed/*.preseed config/preseed/*.preseed.chroot chroot/root/packages.chroot.cfg do if [ -e "${PRESEED}" ] then @@ -61,6 +62,8 @@ then fi done + rm -f chroot/root/packages.chroot.cfg + # Remove dependency Remove_package |