diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:23 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:23 +0200 |
commit | 873a8ac3d1221f47f695c8d89a63370296afffda (patch) | |
tree | d5ee5d0327d701406a8ffa9f00ac3ed04452c08b /src/scripts/22iso.sh | |
parent | 4a992637066b9cb25b57b9122707e5e5ecfcaf0d (diff) | |
download | vyos-live-build-873a8ac3d1221f47f695c8d89a63370296afffda.tar.gz vyos-live-build-873a8ac3d1221f47f695c8d89a63370296afffda.zip |
Adding live-package 0.99.8-1.
Diffstat (limited to 'src/scripts/22iso.sh')
-rw-r--r-- | src/scripts/22iso.sh | 65 |
1 files changed, 58 insertions, 7 deletions
diff --git a/src/scripts/22iso.sh b/src/scripts/22iso.sh index d990e2417..508876847 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 |