]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Restore early generation of fstab/crypttab
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 26 Jan 2026 13:10:38 +0000 (14:10 +0100)
committerVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 30 Jan 2026 12:21:57 +0000 (13:21 +0100)
commit307785960bf03594ffb975fd0d8fabccf43e36ad
treeea9d19a884ff9becd8dd5799f3b267f0e99ab29f
parent95a7b7d474c6a8c8c03ae708ce405e1d3541897e
repart: Restore early generation of fstab/crypttab

Commit 15b1c33 ("repart: Generate fstab and crypttab late") moved
fstab/crypttab generation to the late stage but this introduced a regression:
it may be necessary to include fstab and crypttab into the generated partition
(e.g. with CopyFiles=). This is incompatible with 'fixate-volume-key' option as
it is impossible to capture LUKS volume key before it gets created but all the
rest should work fine.

Generate crypttab twice: early and late to capture possible changes. There's no
need to do the same for fstab for now, so keep the status quo.
man/repart.d.xml
src/repart/repart.c