[SCM] Debian Live build scripts branch, master, updated. 1.0.2-4-27-g3fd6ad6
Daniel Baumann
daniel at debian.org
Mon Jan 26 13:13:44 UTC 2009
The following commit has been merged in the master branch:
commit 3fd6ad685e9c80106b3468c94a192d13a0fac37d
Author: Daniel Baumann <daniel at debian.org>
Date: Mon Jan 26 14:04:48 2009 +0100
Adding temporary workaround to 'failed to install grub' error when using live-installer.
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index 2c97111..ad7a7fd 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" ]
--
Debian Live build scripts
More information about the debian-live-changes
mailing list