mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-21 01:31:26 +00:00
Don't spew the root hashes to the console when creating the hash file. This speeds up hash creation significantly. A basic Qubes install on a cheap (slow) SATA SSD reduced from about 1.5 minutes to just under 1 minute, and a PureOS install on a fast NVMe disk reduced from 2.5 minutes to 1 minute. Support opening LVM volume groups to find the root disk. If an LVM PV is found, its group is opened and the 'root' volume is used. There is no way to set the volume name in this iteration; this is the default name used by Qubes and probably common to many LVM OS installations. LUKS and LVM can be mixed. Tested LUKS (PureOS) and LUKS+LVM (Qubes). Always cd to "$ROOT_MOUNT" in a subshell, improves robustness of scripts (previously some functions only worked if they were called after another function had cd'd to "$ROOT_MOUNT"). Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>