]> git.ipfire.org Git - thirdparty/systemd.git/commit
fstab/gpt-auto: hook up validatefs to /sysroot/usr/ rather than /sysusr/usr/
authorMike Yuan <me@yhndnzj.com>
Sat, 12 Apr 2025 13:06:36 +0000 (15:06 +0200)
committerMike Yuan <me@yhndnzj.com>
Sat, 12 Apr 2025 14:33:22 +0000 (16:33 +0200)
commit7369c037e2f328f0481f13ebc2b968836c4e6250
tree04f118fe1bf56b32666850e6ff0798c368d71f53
parent39642b0130ceab794b1f5697b5756dfe24f6017b
fstab/gpt-auto: hook up validatefs to /sysroot/usr/ rather than /sysusr/usr/

We carry a special logic for /usr/ in initrd that it initially gets
mounted to /sysusr/usr/ and later bind mounted to /sysroot/usr/.
When hooking up validatefs it is hence necessary to wait for
the bind mount and validate that, rather than the /sysusr/usr/
established as intermediate transport.

Alternative to #37102
src/fstab-generator/fstab-generator.c
src/gpt-auto-generator/gpt-auto-generator.c