]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
fstab-generator: add mode to check /sysroot/etc/fstab and maybe do daemon-reload
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Jul 2022 12:36:52 +0000 (14:36 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 23 Jul 2022 17:02:39 +0000 (19:02 +0200)
commit028a981c005e90c36c269e28709bf25032c2e8ca
treef911f852b74a6601ccca297298468a6d39bed257
parent5df2a4a6e0b3e8574e067d0252b954a5e002e751
fstab-generator: add mode to check /sysroot/etc/fstab and maybe do daemon-reload

The idea is that we can peek into /sysroot/etc/fstab and figure out if there's
anything interesting there. We could use a separate binary for this, but we'd
need to duplicate most of the logic that in systemd-fstab-generator. Thus I
think it's nicer to make systemd-fstab-generator work as a multi-call binary.

If called as systemd-sysroot-fstab-check, we look for units that we'd mount and
call daemon-reload and initrd-fs.target/restart, similarly to what we did
before, but in the process itself.
meson.build
src/fstab-generator/fstab-generator.c