summaryrefslogtreecommitdiff
path: root/src/scripts/22iso.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:23 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:23 +0200
commit873a8ac3d1221f47f695c8d89a63370296afffda (patch)
treed5ee5d0327d701406a8ffa9f00ac3ed04452c08b /src/scripts/22iso.sh
parent4a992637066b9cb25b57b9122707e5e5ecfcaf0d (diff)
downloadlive-build-873a8ac3d1221f47f695c8d89a63370296afffda.zip
live-build-873a8ac3d1221f47f695c8d89a63370296afffda.tar.gz
Adding live-package 0.99.8-1.
Diffstat (limited to 'src/scripts/22iso.sh')
-rw-r--r--src/scripts/22iso.sh65
1 files changed, 58 insertions, 7 deletions
diff --git a/src/scripts/22iso.sh b/src/scripts/22iso.sh
index d990e24..5088768 100644
--- a/src/scripts/22iso.sh
+++ b/src/scripts/22iso.sh
@@ -13,26 +13,56 @@ Iso ()
{
if [ ! -f "${LIVE_ROOT}"/.stage/image_binary ]
then
+ # Configure chroot
+ Patch_chroot apply
+ Patch_runlevel apply
+
+ # Configure network
+ Patch_network apply
+
mkdir -p "${LIVE_ROOT}"/binary/casper
- for manifest in "${LIVE_ROOT}"/filesystem.manifest*
+ for MANIFEST in "${LIVE_ROOT}"/filesystem.manifest*
do
- mv "${manifest}" "${LIVE_ROOT}"/binary/casper/
+ mv "${MANIFEST}" "${LIVE_ROOT}"/binary/casper/
done
+ # Remove indices
+ rm -rf "${LIVE_CHROOT}"/var/cache/apt
+ mkdir -p "${LIVE_CHROOT}"/var/cache/apt/archives/partial
+ rm -rf "${LIVE_CHROOT}"/var/lib/apt/lists
+ mkdir -p "${LIVE_CHROOT}"/var/lib/apt/lists/partial
+
# Switching package indices to default
if [ "${LIVE_GENERIC_INDICES}" = "yes" ]
then
Indices default
fi
-
+
+ # Deconfigure network
+ Patch_network deapply
+
+ # Deconfigure chroot
+ Patch_runlevel deapply
+ Patch_chroot deapply
+
# Generating rootfs image
Genrootfs
+ # Configure chroot
+ Patch_chroot apply
+ Patch_runlevel apply
+
+ # Configure network
+ Patch_network apply
+
+ # Remove indices
+ rm -rf "${LIVE_CHROOT}"/var/cache/apt
+ mkdir -p "${LIVE_CHROOT}"/var/cache/apt/archives/partial
+ rm -rf "${LIVE_CHROOT}"/var/lib/apt/lists
+ mkdir -p "${LIVE_CHROOT}"/var/lib/apt/lists/partial
+
# Switching package indices to custom
- if [ "${LIVE_GENERIC_INDICES}" = "yes" ]
- then
- Indices custom
- fi
+ Indices custom
# Installing syslinux
Syslinux iso
@@ -43,6 +73,13 @@ Iso ()
# Installing memtest
Memtest iso
+ # Deconfigure network
+ Patch_network deapply
+
+ # Deconfigure chroot
+ Patch_runlevel deapply
+ Patch_chroot deapply
+
# Installing templates
if [ "${LIVE_FLAVOUR}" != "minimal" ]
then
@@ -62,9 +99,23 @@ Iso ()
if [ ! -f "${LIVE_ROOT}"/.stage/image_source ] && [ "${LIVE_SOURCE}" = "yes" ]
then
+ # Configure chroot
+ Patch_chroot apply
+ Patch_runlevel apply
+
+ # Configure network
+ Patch_network apply
+
# Downloading sources
Sources
+ # Deconfigure network
+ Patch_network deapply
+
+ # Deconfigure chroot
+ Patch_runlevel deapply
+ Patch_chroot deapply
+
# Creating image
Mkisofs source