projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merging casper 1.206.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
43disable_updateinitramfs
diff --git
a/scripts/live-bottom/43disable_updateinitramfs
b/scripts/live-bottom/43disable_updateinitramfs
index
6ceeacf
..
0a6c7c0
100755
(executable)
--- 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 ] && \
# Running off a USB disk or other writable media.
if [ -w /root/cdrom ] && \
- ! grep -q '^[^ ]* /root/cdrom [^ ]* [^ ]*\<ro\>' /proc/mounts
+ # rw is guaranteed to be first.
+ grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo
then
cat > /root/usr/sbin/update-initramfs << 'EOF'
then
cat > /root/usr/sbin/update-initramfs << 'EOF'