[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rc.shutdown: fix premature unmounting of pseudo-filesystems #23

Merged
merged 1 commit into from
Nov 25, 2020
Merged

rc.shutdown: fix premature unmounting of pseudo-filesystems #23

merged 1 commit into from
Nov 25, 2020

Conversation

noocsharp
Copy link
Contributor

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.

@dylanaraps dylanaraps merged commit 302603a into kisslinux:master Nov 25, 2020
@ghost ghost mentioned this pull request Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants