fix(mkimg): lost extract rootfs step

Must run mkrootfs.sh before run mkimg.sh

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-27 19:55:25 +08:00
parent 40fc627098
commit 8e9166c0f0
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -76,6 +76,12 @@ sudo e2label /dev/nbd0p1 rootfs
mkdir -p qcow2
sudo mount /dev/nbd0p1 qcow2
msg "Extract rootfs..."
pushd qcow2
sudo bsdtar -pxvf "../archriscv-$(date --rfc-3339=date).tar.zst"
popd
msg "Install kernel package..."
sudo pacman \
@ -101,7 +107,7 @@ EOF
msg "Clean up..."
msg2 "Clean up pacman package cache..."
yes y | sudo pacman \
--sysroot ./rootfs \
--sysroot ./qcow2 \
--sync --clean --clean
# https://github.com/CoelacanthusHex/archriscv-scriptlet/issues/1