When passing the -t flag to umount, the "no" prefix applies to the whole list of fs types, not just the one that it prefixes (see umount man page or libbb/match_fstype.c in busybox source code). Currently, umount tries to ignore "noproc", "nodevtmpfs" and "notmpfs", due to the "no" prefix on "sysfs". They obviously do not match "proc", "devtmpfs" and "tmpfs", meaning these filesystems get unintentionally and prematurely unmounted. This leads to errors about not being able to read /proc/mounts on shutdown.
This fixes the issue by correctly prefixing just the whole list, rather than each filesystem type.
When passing the
-t
flag to umount, the "no" prefix applies to the whole list of fs types, not just the one that it prefixes (see umount man page or libbb/match_fstype.c in busybox source code). Currently, umount tries to ignore "noproc", "nodevtmpfs" and "notmpfs", due to the "no" prefix on "sysfs". They obviously do not match "proc", "devtmpfs" and "tmpfs", meaning these filesystems get unintentionally and prematurely unmounted. This leads to errors about not being able to read/proc/mounts
on shutdown.This fixes the issue by correctly prefixing just the whole list, rather than each filesystem type.