X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F43disable_updateinitramfs;h=2b60315e1f5382820f23fd12caf48c4e0507a148;hb=e8345bc6936d5a5c0ecc9b733707619a47f1a2ee;hp=fa0ecac1fde63893ae4bb57cb611094fe731b542;hpb=42a20948ac4137744ec13ca1a2d2bebb590315b0;p=live-boot-grml.git 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'