]> git.ipfire.org Git - thirdparty/systemd.git/commit
fstab-util: introduce fstab_enabled() helper function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 17:30:33 +0000 (02:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 9 Aug 2023 08:53:46 +0000 (17:53 +0900)
commit1177373b6a0aa3698c2ec300bed0ad338f8f4721
tree0f7d06d79b7f32061a8341598890ac2fc55cc9c6
parent3787934b54822e6d6fcfd95dd2a5157c1d1b2212
fstab-util: introduce fstab_enabled() helper function

And refuse to parse fstab when 'fstab=no' is specified in the kernel
command line.

When 'fstab=no' is specified in the kernel command line, fstab-generator
does not parse fstab and will not create e.g. /boot or /efi mount entry
even if fstab contains entries for the mount points. However, gpt-auto
generator may parse fstab file, and adjust or ignore mounts for EFI or
XBOOTLDR partitions based on the fstab file.

This makes gpt-auto also ignore fstab entries if 'fstab=no' is set in
the kernel command line.
src/shared/fstab-util.c
src/shared/fstab-util.h