diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:22 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:22 +0200 |
commit | 262e501463f4cc8bba690a1ef7cf0887cbfaa8cf (patch) | |
tree | d688ad07398eabd54adc7d0c0f8f32f128847688 /src/scripts/22iso.sh | |
parent | c9462fd48b0d4fb9968641e46c3350fb5e9986a2 (diff) | |
download | vyos-live-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.tar.gz vyos-live-build-262e501463f4cc8bba690a1ef7cf0887cbfaa8cf.zip |
Adding live-package 0.99.5-1.
Diffstat (limited to 'src/scripts/22iso.sh')
-rw-r--r-- | src/scripts/22iso.sh | 65 |
1 files changed, 46 insertions, 19 deletions
diff --git a/src/scripts/22iso.sh b/src/scripts/22iso.sh index 8f5b8c287..07b1f9186 100644 --- a/src/scripts/22iso.sh +++ b/src/scripts/22iso.sh @@ -11,32 +11,59 @@ Iso () { - mkdir -p "${LIVE_ROOT}"/image/casper + if [ ! -f "${LIVE_ROOT}"/.stage/image_binary ] + then + mkdir -p "${LIVE_ROOT}"/binary/casper - # Switching package indices to default - Indices default + # Switching package indices to default + if [ "${LIVE_GENERIC_INDICES}" = "yes" ] + then + Indices default + fi - # Generating rootfs image - Genrootfs + # Generating rootfs image + Genrootfs - # Switching package indices to custom - Indices custom + # Switching package indices to custom + if [ "${LIVE_GENERIC_INDICES}" = "yes" ] + then + Indices custom + fi - # Installing syslinux - Syslinux iso + # Installing syslinux + Syslinux iso - # Installing linux-image - Linuximage iso + # Installing linux-image + Linuximage iso - # Installing memtest - Memtest iso + # Installing memtest + Memtest iso - # Installing templates - cp -r "${LIVE_TEMPLATES}"/iso/* "${LIVE_ROOT}"/image + # Installing templates + if [ "${LIVE_FLAVOUR}" != "minimal" ] + then + cp -r "${LIVE_TEMPLATES}"/iso/* "${LIVE_ROOT}"/binary + fi - # Calculating md5sums - Md5sum + # Calculating md5sums + Md5sum - # Creating image - Mkisofs + # Creating image + Mkisofs binary + + # Touching stage file + touch "${LIVE_ROOT}"/.stage/image_binary + fi + + if [ ! -f "${LIVE_ROOT}"/.stage/image_source ] && [ "${LIVE_SOURCE}" = "yes" ] + then + # Downloading sources + Sources + + # Creating image + Mkisofs source + + # Touching stage file + touch "${LIVE_ROOT}"/.stage/image_source + fi } |