fix(mkrootfs): usermod ONLY support abs path

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-27 22:04:25 +08:00
parent eb221c9a84
commit de725f6b8e
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 $(perl -e "print crypt('archriscv','yescrypt')") root
sudo usermod --root (realpath ./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/ .