X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F43disable_updateinitramfs;h=6ceeacfa09488540ffda83be85d9296d4f9b502b;hb=88dea2ac418e83dab5be51632d7c2687c0f809d7;hp=dab22909f01faaf6fa65d3c47cd6f28131abb504;hpb=b9080e2877ab788d96ff0e16794aa372436fbebf;p=live-boot-grml.git diff --git a/scripts/live-bottom/43disable_updateinitramfs b/scripts/live-bottom/43disable_updateinitramfs index dab2290..6ceeacf 100755 --- a/scripts/live-bottom/43disable_updateinitramfs +++ b/scripts/live-bottom/43disable_updateinitramfs @@ -30,10 +30,11 @@ 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 /root/cdrom ] && \ + ! grep -q '^[^ ]* /root/cdrom [^ ]* [^ ]*\' /proc/mounts then -cat > /root/usr/sbin/update-initramfs << EOF +cat > /root/usr/sbin/update-initramfs << 'EOF' #!/bin/sh update-initramfs.distrib "$@"