[SCM] live-helper branch, debian-next, updated. debian/2.0_a16-1-10-gbeb21bb

Daniel Baumann daniel at debian.org
Fri Jul 2 12:33:14 UTC 2010


The following commit has been merged in the debian-next branch:
commit 26d68321d3b0ed078168a0a4c8c1745c2f1d9703
Author: Alexander Sack <asac at linaro.org>
Date:   Fri Jul 2 14:24:16 2010 +0200

    Ensure that mtab is properly linked to /proc/mounts in binary_virtual-hdd.

diff --git a/helpers/binary_virtual-hdd b/helpers/binary_virtual-hdd
index 4e61c6b..aeb701a 100755
--- a/helpers/binary_virtual-hdd
+++ b/helpers/binary_virtual-hdd
@@ -70,6 +70,13 @@ if [ "${LH_BUILD_WITH_CHROOT}" = "true" ]
 then
 	mv binary-virtual.img chroot
 
+	# hack to recreate mtab from chroot_hacks if its gone for some reason
+	if ! Chroot chroot "test -s /etc/mtab"
+	then
+		Chroot chroot "rm -f /etc/mtab"
+		Chroot chroot "ln -s /proc/mounts /etc/mtab"
+	fi
+
 	case "${LH_BINARY_FILESYSTEM}" in
 		ext2)
 			Chroot chroot "mkfs.ext2 -F binary-virtual.img"

-- 
live-helper



More information about the debian-live-changes mailing list