diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:36 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:36 +0200 |
commit | b7d07a269e4a2d1bac730e177bc6826a7cd450d5 (patch) | |
tree | 62003f7571c98e4dab5e1ed2628e98164b98a914 /src/scripts/21image.sh | |
parent | 03c8a20c280c6888b4d274a3095013064b94e99b (diff) | |
download | vyos-live-build-b7d07a269e4a2d1bac730e177bc6826a7cd450d5.tar.gz vyos-live-build-b7d07a269e4a2d1bac730e177bc6826a7cd450d5.zip |
Adding live-package 0.99.14-1.
Diffstat (limited to 'src/scripts/21image.sh')
-rw-r--r-- | src/scripts/21image.sh | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/scripts/21image.sh b/src/scripts/21image.sh index 57c3d9fcf..0c8ab67d2 100644 --- a/src/scripts/21image.sh +++ b/src/scripts/21image.sh @@ -119,14 +119,19 @@ EOF done # Update indices - Chroot_exec "apt-get update" + if [ "${2}" = "initial" ] + then + Chroot_exec "apt-get update" + else + Chroot_exec "aptitude update" + fi if [ "${LIVE_DISTRIBUTION_EXPERIMENTAL}" = "yes" ] then # experimental is sometimes broken, # therefore this is intentionally kept interactive. - Chroot_exec "apt-get upgrade" || return 0 - Chroot_exec "apt-get dist-upgrade" || return 0 + Chroot_exec "aptitude upgrade" || return 0 + Chroot_exec "aptitude dist-upgrade" || return 0 fi } @@ -163,7 +168,7 @@ Syslinux () then # Install syslinux Patch_network apply - Chroot_exec "apt-get install --yes --force-yes syslinux" + Chroot_exec "aptitude install --assume-yes syslinux" case "${1}" in iso) @@ -203,7 +208,7 @@ Syslinux () esac # Remove syslinux - Chroot_exec "apt-get remove --purge --yes syslinux" + Chroot_exec "aptitude purge --assume-yes syslinux" Patch_network deapply fi } @@ -244,7 +249,7 @@ Memtest () then # Install memtest Patch_network apply - Chroot_exec "apt-get install --yes --force-yes memtest86+" + Chroot_exec "aptitude install --assume-yes memtest86+" case "$1" in iso) @@ -259,7 +264,7 @@ Memtest () esac # Remove memtest - Chroot_exec "apt-get remove --purge --yes memtest86+" + Chroot_exec "aptitude purge --assume-yes memtest86+" Patch_network deapply fi } |