virtapi / LARS

Live Arch Rescue System
GNU Affero General Public License v3.0
8 stars 5 forks source link

Parse cmdline to get specific root hash #25

Closed bastelfreak closed 8 years ago

bastelfreak commented 8 years ago

We currently provide a root hash in the cmdline, for example:

BOOT_IMAGE=http://10.30.7.40/archrescue/arch/boot/x86_64/vmlinuz archiso_http_srv=http://10.30.7.40/archrescue/ archisobasedir=arch checksum=y nomodeset quiet systemd.mask=systemd-machine-id-commit systemd.mask=systemd-tmpfiles-setup systemd.mask=ldconfig initrd=http://10.30.7.40/archrescue/arch/boot/x86_64/archiso.img ip=10.30.7.41:10.30.7.40:10.30.7.1:255.255.255.128 BOOTIF=01-b8-ac-6f-97-7e-77 HASH=$6$qvmRilOYdP7ihmxO$bUDCInM8KCtcFqlSucoc0tKXZoJ/eTEznwoU4IDlISfwxhq9s2kl6oFoZna48LbHQc7a.61/MEYDZhn6q.WpB0

We need to parse this and write it into the /etc/shadow file

bastelfreak commented 8 years ago

this got fixed in https://github.com/virtapi/LARS/pull/26