summaryrefslogtreecommitdiff
path: root/src/scripts/14chroot.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:22 +0200
commit262e501463f4cc8bba690a1ef7cf0887cbfaa8cf (patch)
treed688ad07398eabd54adc7d0c0f8f32f128847688 /src/scripts/14chroot.sh
parentc9462fd48b0d4fb9968641e46c3350fb5e9986a2 (diff)
downloadlive-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.zip
live-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.tar.gz
Adding live-package 0.99.5-1.
Diffstat (limited to 'src/scripts/14chroot.sh')
-rw-r--r--src/scripts/14chroot.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/scripts/14chroot.sh b/src/scripts/14chroot.sh
index 5f3ff9c..55ffa9a 100644
--- a/src/scripts/14chroot.sh
+++ b/src/scripts/14chroot.sh
@@ -21,7 +21,7 @@ Chroot ()
then
# Configure chroot
Patch_chroot apply
- #Patch_runlevel apply
+ Patch_runlevel apply
# Configure network
Patch_network apply
@@ -30,7 +30,7 @@ Chroot ()
Indices custom
# Install secure apt
- if [ "${LIVE_DISTRIBUTION}" = "${CODENAME_TESTING}" ] || [ "${LIVE_DISTRIBUTION}" = "${CODENAME_UNSTABLE}" ]
+ if [ "${LIVE_DISTRIBUTION}" = "testing" ] || [ "${LIVE_DISTRIBUTION}" = "unstable" ]
then
Chroot_exec "apt-get install --yes --force-yes debian-archive-keyring"
fi
@@ -44,16 +44,15 @@ Chroot ()
# Install linux-image, modules and casper
Chroot_exec "apt-get install --yes linux-image-2.6-${LIVE_KERNEL} squashfs-modules-2.6-${LIVE_KERNEL} unionfs-modules-2.6-${LIVE_KERNEL} casper"
- # Rebuild initial ramdisk
- Chroot_exec "dpkg-reconfigure `basename ${LIVE_CHROOT}/var/lib/dpkg/info/linux-image-2.6.*-${LIVE_KERNEL}.postinst .postinst`"
-
# Deconfigure linux-image
Patch_linux deapply
# Install packages list
if [ -n "${LIVE_PACKAGE_LIST}" ]
then
- Chroot_exec "apt-get install --yes `cat ${LIVE_PACKAGE_LIST}`"
+ grep -v "^#" "${LIVE_PACKAGE_LIST}" > "${LIVE_CHROOT}"/root/"`basename ${LIVE_PACKAGE_LIST}`"
+ Chroot_exec "xargs --arg-file=/root/`basename ${LIVE_PACKAGE_LIST}` apt-get install --yes"
+ rm -f "${LIVE_CHROOT}"/root/"`basename ${LIVE_PACKAGE_LIST}`"
fi
# Install extra packages
@@ -93,12 +92,10 @@ Chroot ()
Patch_network deapply
# Deconfigure chroot
- #Patch_runlevel deapply
+ Patch_runlevel deapply
Patch_chroot deapply
# Touching stage file
touch "${LIVE_ROOT}"/.stage/chroot
-
- echo "done."
fi
}