diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:20 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:20 +0200 |
commit | eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (patch) | |
tree | 18151396add367542887fe7f017025538e3318d6 /scripts/02-iso.sh | |
download | vyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.tar.gz vyos-live-build-eeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5.zip |
Adding live-package 0.99-1.
Diffstat (limited to 'scripts/02-iso.sh')
-rw-r--r-- | scripts/02-iso.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/02-iso.sh b/scripts/02-iso.sh new file mode 100644 index 000000000..838b219ed --- /dev/null +++ b/scripts/02-iso.sh @@ -0,0 +1,46 @@ +# scripts/02-iso.sh + +Iso () +{ + mkdir -p "${LIVE_ROOT}"/image/casper + + if [ "${LIVE_FILESYSTEM}" = "ext2" ] + then + DU_DIM="`du -ks ${LIVE_CHROOT} | cut -f1`" + REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here... + + genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 \ + \--root="${LIVE_CHROOT}" \ + "${LIVE_ROOT}"/image/casper/filesystem.ext2 + else + if [ -f "${LIVE_ROOT}"/image/casper/filesystem.squashfs ] + then + rm "${LIVE_ROOT}"/image/casper/filesystem.squashfs + fi + + if [ -z "${LIVE_VERBOSE}" ] + then + mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/image/casper/filesystem.squashfs + else + mksquashfs -info "${LIVE_CHROOT}" "${LIVE_ROOT}"/image/casper/filesystem.squashfs + fi + fi + + # Installing syslinux + Syslinux iso + + # Installing linux-image + Linuximage iso + + # Installing memtest + Memtest iso + + # Installing templates + cp -a "${LIVE_TEMPLATES}"/iso/* "${LIVE_ROOT}"/image + + # Calculating md5sums + md5sums + + # Creating image + mkisofss +} |