From 3f682b4344b8b6fb0e8478ce684783f183c4802d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Oct 2009 13:47:08 +0100 Subject: Merging casper 1.169. --- scripts/live-bottom/43disable_updateinitramfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/live-bottom/43disable_updateinitramfs b/scripts/live-bottom/43disable_updateinitramfs index fa0ecac..2b60315 100755 --- a/scripts/live-bottom/43disable_updateinitramfs +++ b/scripts/live-bottom/43disable_updateinitramfs @@ -30,7 +30,8 @@ chroot /root dpkg-divert --add --rename --quiet \ /usr/sbin/update-initramfs # Running off a USB disk or other writable media. -if [ -w /cdrom ] +if [ -w /cdrom ] && \ + ! grep -q '^[^ ]* /cdrom [^ ]* [^ ]*\' /proc/mounts; then then cat > /root/usr/sbin/update-initramfs << 'EOF' -- cgit v1.2.3