5

rc.shutdown doesn't seem to umount the filesystems correctly

view full story
linux-howto

https://bbs.archlinux.org – The problem is that each time I shutdown/reboot, there's a message saying "Unmounting Non-API Filesystems" failed, and the next time system boots, fsck will recover journal. I looked into etc/rc.shutdown, found that it calls umount_all in etc/rc.d/functions. I made the following changes to umount_all (just add some echo to record infomation in /tmp/permanent/umount_all_log):umount_all() { # $1: restrict to fstype local mounts ( while read -r target fstype options; do echo "got: $taret $fstype $options" # match only targetted fstypes if [[ $1 && (HowTos)