git: DragonFly_RELEASE_6_4 initrd: Support to specify a PFS label in 'vfs.root.realroot'
Aaron LI
aly at crater.dragonflybsd.org
Fri Jun 19 06:32:12 PDT 2026
commit 468c26eb01c7deaa7a92f83d1c5788eed0e0f022
Author: Aaron LI <aly at aaronly.me>
Date: Tue Jun 16 13:53:17 2026 +0800
initrd: Support to specify a PFS label in 'vfs.root.realroot'
The 'vfs.root.realroot' syntax previously didn't support to specify a
PFS label for a HAMMER/HAMMER2 filesystem on an encrypted partition.
There was a hack to work around this limitation by naming the mapped
device with 'd' in the end (e.g., use 'rootd' rather than 'root'), so
the kernel would auto mount the '@ROOT' PFS from it.
However, it was impossible to work around the limitation when the target
PFS uses a custom label, e.g., '@ROOT.20260616'.
This commit fixes the limitation by extending the rcmount_{crypt,tcplay}
scripts to support to directly specify the PFS label in
'vfs.root.realroot'.
Update and improve the initrd(7) man page accordingly.
Reported-by: vjkarbo (via IRC)
Summary of changes:
initrd/etc/rcmount_crypt | 24 +++++++++++++++------
initrd/etc/rcmount_tcplay | 20 ++++++++++++-----
share/man/man7/initrd.7 | 55 +++++++++++++++++++++++++++++++++++------------
3 files changed, 73 insertions(+), 26 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/468c26eb01c7deaa7a92f83d1c5788eed0e0f022
--
DragonFly BSD source repository
More information about the Commits
mailing list