summaryrefslogtreecommitdiff
path: root/include/x86
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2019-04-29 10:23:14 +0200
committerSimon Horman <horms@verge.net.au>2019-05-15 09:45:41 +0200
commitc072bd13abbe497d28e4235e2cf416f4aee65754 (patch)
treeaca6c77f82f5dca8ec2e9694b215b7d58470363a /include/x86
parent23aaa44614a02d2184951142125cb55b36cef40a (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/x86')
0 files changed, 0 insertions, 0 deletions