summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_preseed
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-04-26 22:49:57 +0200
committerDaniel Baumann <daniel@debian.org>2012-04-26 22:56:57 +0200
commit4a182167c787e167ddc616954d29d01d087e26c6 (patch)
tree335babaec555e99cff86d14db5a82f71dba9db3e /scripts/build/lb_chroot_preseed
parent5787c78ff05ca9351935d683118fbda7fdd97278 (diff)
downloadvyos-live-build-4a182167c787e167ddc616954d29d01d087e26c6.tar.gz
vyos-live-build-4a182167c787e167ddc616954d29d01d087e26c6.zip
Automatically preseed some known firmware packages.
Diffstat (limited to 'scripts/build/lb_chroot_preseed')
-rwxr-xr-xscripts/build/lb_chroot_preseed7
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