]> git.ipfire.org Git - thirdparty/systemd.git/commit
fstab-generator: add rd.systemd.mount-extra= and friends
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 25 Jul 2023 19:17:27 +0000 (04:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Jul 2023 15:50:01 +0000 (00:50 +0900)
commit45c535ddb009d89f2740bdf3a5c88594962759fb
tree2b919f4ec3c45ce2ac4ef25fee13cdb3a965c3c0
parentb93d9e06fc6abbd496ec3fb150a4e01c3b7ec72b
fstab-generator: add rd.systemd.mount-extra= and friends

Previously, mounts specified in systemd.mount-extra= are equally handled
both in initrd and the main system. So, the mounts for the main system
are also mounted in initrd.

This introduces rd.systemd.mount-extra=, which specifies mounts in initrd.
Then, mounts specified in systemd.mount-extra= are still mounted both in
initrd and the main system, but prefixed with /sysroot/ when running in
initrd.

Fixes #28516.
man/systemd-fstab-generator.xml
src/fstab-generator/fstab-generator.c
test/test-fstab-generator/test-19-mounts-from-cmdline.input
test/test-fstab-generator/test-20-swap-from-cmdline.input