fix(mkrootfs): usermod require encrypted password

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-27 21:50:49 +08:00
parent 7668eca128
commit eb221c9a84
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -21,7 +21,7 @@ yes y | sudo pacman \
--sync --clean --clean
msg "Set root password (Default: archriscv)..."
usermod --root ./rootfs --password archriscv root
usermod --root ./rootfs --password $(perl -e "print crypt('archriscv','yescrypt')") root
msg "Compressing rootfs..."
sudo bsdtar --create --zstd --verbose --xattrs --acls -f "archriscv-$(date --rfc-3339=date).tar.zst" -C rootfs/ .