]> git.ipfire.org Git - thirdparty/systemd.git/commit
fstab-generator: do not skip /sysroot prefix if the mount point is missing 24018/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Jul 2022 15:33:13 +0000 (17:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jul 2022 13:48:05 +0000 (15:48 +0200)
commitff52ff2565a3034a0ad063454a58d0c5649adc00
treed1c7b0515be9a025003cb1656acf7daa477f45a2
parent640dc2f3ad658587b2ce2b1d308a23c28b415a5b
fstab-generator: do not skip /sysroot prefix if the mount point is missing

When chase_symlinks() is called on something on a doesn't exist, it immediately
returns an error. But we were relying on it to prepend "/sysroot/". If it
fails, we need to do that ourselves.

For example, with /sysroot/etc/fstab containing a line for /foo, if /sysroot/foo
doesn't exist, we'd generate a mount point for /foo.
src/fstab-generator/fstab-generator.c