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/21image.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/21image.sh')
-rw-r--r-- | src/scripts/21image.sh | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/scripts/21image.sh b/src/scripts/21image.sh index 930315cc0..7258b6af1 100644 --- a/src/scripts/21image.sh +++ b/src/scripts/21image.sh @@ -138,7 +138,7 @@ Syslinux () then # Install syslinux Patch_network apply - Chroot_exec "apt-get install --yes syslinux" + Chroot_exec "apt-get install --yes --force-yes syslinux" case "${1}" in iso) @@ -188,14 +188,26 @@ Linuximage () case "${1}" in iso) # Copy linux-image - cp "${LIVE_CHROOT}"/boot/vmlinuz-* "${LIVE_ROOT}"/binary/isolinux/vmlinuz - cp "${LIVE_CHROOT}"/boot/initrd.img-* "${LIVE_ROOT}"/binary/isolinux/initrd.gz + if [ "${LIVE_FLAVOUR}" = "minimal" ] + then + mv "${LIVE_CHROOT}"/boot/vmlinuz-* "${LIVE_ROOT}"/binary/isolinux/vmlinuz + mv "${LIVE_CHROOT}"/boot/initrd.img-* "${LIVE_ROOT}"/binary/isolinux/initrd.gz + else + cp "${LIVE_CHROOT}"/boot/vmlinuz-* "${LIVE_ROOT}"/binary/isolinux/vmlinuz + cp "${LIVE_CHROOT}"/boot/initrd.img-* "${LIVE_ROOT}"/binary/isolinux/initrd.gz + fi ;; net) # Copy linux-image - cp "${LIVE_ROOT}"/chroot/boot/vmlinuz-* "${LIVE_ROOT}"/tftpboot/vmlinuz - cp "${LIVE_ROOT}"/chroot/boot/initrd.img-* "${LIVE_ROOT}"/tftpboot/initrd.gz + if [ "${LIVE_FLAVOUR}" = "minimal" ] + then + mv "${LIVE_ROOT}"/chroot/boot/vmlinuz-* "${LIVE_ROOT}"/tftpboot/vmlinuz + mv "${LIVE_ROOT}"/chroot/boot/initrd.img-* "${LIVE_ROOT}"/tftpboot/initrd.gz + else + cp "${LIVE_ROOT}"/chroot/boot/vmlinuz-* "${LIVE_ROOT}"/tftpboot/vmlinuz + cp "${LIVE_ROOT}"/chroot/boot/initrd.img-* "${LIVE_ROOT}"/tftpboot/initrd.gz + fi ;; esac } @@ -206,7 +218,7 @@ Memtest () then # Install memtest Patch_network apply - Chroot_exec "apt-get install --yes memtest86+" + Chroot_exec "apt-get install --yes --force-yes memtest86+" case "$1" in iso) |