git: initrd: Support to specify a PFS label in 'vfs.root.realroot'

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 19 06:29:45 PDT 2026


commit 2d22eb56078017050d2d89119ba2facd79d4bd8e
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/2d22eb56078017050d2d89119ba2facd79d4bd8e


-- 
DragonFly BSD source repository


More information about the Commits mailing list