From 4a182167c787e167ddc616954d29d01d087e26c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 26 Apr 2012 22:49:57 +0200 Subject: Automatically preseed some known firmware packages. --- scripts/build/lb_chroot_preseed | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/build/lb_chroot_preseed') 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 -- cgit v1.2.3