From 2820ba301e0fab0979e5e6b705ece3f01afcf2c8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 May 2010 12:16:30 +0200 Subject: Merging casper 1.206. --- 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 6ceeacf..0a6c7c0 100755 --- a/scripts/live-bottom/43disable_updateinitramfs +++ b/scripts/live-bottom/43disable_updateinitramfs @@ -31,7 +31,8 @@ chroot /root dpkg-divert --add --rename --quiet \ # Running off a USB disk or other writable media. if [ -w /root/cdrom ] && \ - ! grep -q '^[^ ]* /root/cdrom [^ ]* [^ ]*\' /proc/mounts + # rw is guaranteed to be first. + grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo then cat > /root/usr/sbin/update-initramfs << 'EOF' -- cgit v1.2.3