Package: initscripts
Version: 2.86.ds1-1
Severity: wishlist

Sometimes, the unmounting or remounting read-only of some filesystems fails
for some reason ("is busy", for example), causing a fsck on the next boot.
In that case, one may wish to get a basic root shell to correct the problem.

Suggested addition: at the end of umountfs, something like that:

if [ "x$ROOT_SHELL_IF_UMOUNT_FAILS" = xyes ]; then
  if grep -qE '^/dev/(root|hd|sd|discs|ide|scsi)[^ ]* [^ ]*.*\<rw\>' 
/proc/mounts
    echo "Some filesystems still mounted rw. Please fix and exit."
    sh
  fi
fi

Attachment: signature.asc
Description: Digital signature

Reply via email to