Introduce gpt.sh as the default GPT partitioned plan with dual BIOS and UEFI boot support, dynamic partition sizing and labeled root, altroot, cfg and data partitions.
Move legacy-only helpers and configuration variables (such as NANO_MD_BACKING, NANO_IMAGE_MBRONLY, FlashDevice, UsbDevice, and legacy slice population helpers) from defaults.sh into legacy.sh.
Bump the default NANO_RAM_TMPVARSIZE since pkgbase requires significantly more space in /var/db/pkg. Leave the legacy plan default unchanged.
Move change_password, save_cfg and save_sshkeys from root/bin to usr/local/sbin under defaults/Files, which is on the default PATH.
Set NANO_DRIVE from NANO_LABEL instead of hard coding vtbd0, and clean up tgt_dir2symlink() and make_boot_partition().