Make CONFIG_FHANDLE default y
PATCH 1/1 Make CONFIG_FHANDLE default y
From: Andi Kleen <[email protected]>
Newer Fedora and OpenSUSE didn't boot with my standard configuration. It took me some time to figure out why, in fact I had to write a script to try different config options systematically.
The problem is that something in dracut depends on CONFIG_FHANDLE, which adds open by file handle syscalls.
While it is set in defconfigs it is very easy to miss when updating older configs because it is not default y.
Make it default y and also depend on EXPERT, as dracut use is likely wide spread.
--- init/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
init/Kconfig +2 -1
@@ -272,8 +272,9 @@ config CROSS_MEMORY_ATTACH See the man page for more details. config FHANDLE - bool "open by fhandle syscalls" + bool "open by fhandle syscalls" if EXPERT select EXPORTFS + default y help If you say Y here, a user level program will be able to map file names to handle and then later use the handle for
Signature · 1 line
2.5.5
Quoted 8 lines · Andi Kleen
From: Andi Kleen <[email protected]>
Newer Fedora and OpenSUSE didn't boot with my standard configuration. It took me some time to figure out why, in fact I had to write a script to try different config options systematically.
The problem is that something in dracut depends on
CONFIG_FHANDLE, which adds open by file handle syscalls.
s/something/systemd. :-)
Signature · 2 lines
Thanks, //richard
Quoted 11 lines · Richard Weinberger
Quoted 8 lines · Andi Kleen
From: Andi Kleen <[email protected]>
Newer Fedora and OpenSUSE didn't boot with my standard configuration. It took me some time to figure out why, in fact I had to write a script to try different config options systematically.
The problem is that something in dracut depends on
CONFIG_FHANDLE, which adds open by file handle syscalls.s/something/systemd. :-)
Makes sense thanks. It should probably give a better error message like it gives for missing cgroups
(right now just your root file system is missing)
But right now we should avoid others having the same pain and make the option default.
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only.
Am 31.03.2016 um 20:42 schrieb Andi Kleen:
Quoted 8 lines · Richard Weinberger
Quoted 7 lines · Andi Kleen
Quoted 6 lines
From: Andi Kleen <[email protected]>
Newer Fedora and OpenSUSE didn't boot with my standard configuration. It took me some time to figure out why, in fact I had to write a script to try different config options systematically.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
The problem is that something in dracut depends on
CONFIG_FHANDLE, which adds open by file handle syscalls.s/something/systemd. :-)
Makes sense thanks. It should probably give a better error message like it gives for missing cgroups
(right now just your root file system is missing)
That's an improvement, a few release ago it segfaulted in that case.
Quoted 2 lines
But right now we should avoid others having the same pain and make the option default.
FHANDLE is part of x86's defconfig.
Please see https://github.com/systemd/systemd/blob/master/README#L37 for a list of needed kernel options.
Thanks,
//richard