/usr/sbin/update-initramfs
# Running off a USB disk or other writable media.
-if [ -w /cdrom ] && \
- ! grep -q '^[^ ]* /cdrom [^ ]* [^ ]*\<ro\>' /proc/mounts; then
+if [ -w /root/cdrom ] && \
+ # rw is guaranteed to be first.
+ grep -q ' /root/cdrom rw[, ]' /proc/self/mountinfo
then
cat > /root/usr/sbin/update-initramfs << 'EOF'