diff options
author | Daniel Baumann <daniel@debian.org> | 2009-01-26 14:04:48 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:40 +0100 |
commit | 951c24dc08ac85d9f1d99fdb06780b1fd499affe (patch) | |
tree | 2b7c77dceb2307399ae14b42b5162a6a92c30a2e /helpers | |
parent | a0d12dbf00eb37f26ec0bcf3da0260c182bf862d (diff) | |
download | vyos-live-build-951c24dc08ac85d9f1d99fdb06780b1fd499affe.tar.gz vyos-live-build-951c24dc08ac85d9f1d99fdb06780b1fd499affe.zip |
Adding temporary workaround to 'failed to install grub' error when using live-installer.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_chroot_hacks | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks index 2c971111b..ad7a7fdcf 100755 --- a/helpers/lh_chroot_hacks +++ b/helpers/lh_chroot_hacks @@ -112,11 +112,28 @@ then chown -R --quiet ${ID}:${ID} chroot/home/${LH_USERNAME} fi -# This is a temporary hack to get rid of fstab; -# needs cleanup in live-initramfs first to proper fix. if [ "${LH_DEBIAN_INSTALLER}" = "live" ] then + # This is a temporary hack to get rid of fstab; + # needs cleanup in live-initramfs first to proper fix. rm -f chroot/etc/fstab + + # There is a timing issue somewhere when using live-installer + # and the apt-get update waypoint: At the time when we're installing + # bootloader, it tries to fetch them from the net but the e.g. + # 'chroot /target apt-get install grub' fails because of missing + # packages lists. As a very cheap workaround, we ensure that the + # bootloader is already installed in the image. Very ugly, but it's to + # late to fix it in d-i because lenny rc2 has been already released. + case "${LH_ARCHITECTURE}" in + amd64|i386) + Apt install grub + ;; + + powerpc) + Apt install yaboot + ;; + esac fi if [ "${LH_EXPOSED_ROOT}" = "enabled" ] |