diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-04-29 10:23:14 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2019-05-15 09:45:41 +0200 |
commit | c072bd13abbe497d28e4235e2cf416f4aee65754 (patch) | |
tree | aca6c77f82f5dca8ec2e9694b215b7d58470363a /include | |
parent | 23aaa44614a02d2184951142125cb55b36cef40a (diff) |
x86: Find mounts by FS type, not name
The name in mount invocations like
mount -t debugfs debugfs /sys/kernel/debug
is nothing but convention and cannot be relied upon.
For example, https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt
recommends making the name "none" instead:
mount -t debugfs none /sys/kernel/debug
and many existing systems use mounts named "none" or otherwise.
Using `mnt_type` instead of `mnt_fsname` allows kexec to work
on such systems.
This fixes another instance of `poweroff` not working on kexec'ed
kernels because the lack of correctly matched mount results in EFI
variables not being read and propagated.
Signed-off-by: Niklas Hambüchen <mail@nh2.me>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions