X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F43disable_updateinitramfs;h=6ceeacfa09488540ffda83be85d9296d4f9b502b;hb=d951dd4cb6eab8a83a4cc4ad52a09a9f58a74a06;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..6ceeacf 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 /root/cdrom ] && \ + ! grep -q '^[^ ]* /root/cdrom [^ ]* [^ ]*\' /proc/mounts then cat > /root/usr/sbin/update-initramfs << 'EOF'