fix(mkimg): use pacman in chroot and Syu when install packages

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
Coelacanthus 2022-07-27 20:45:02 +08:00
parent 8e9166c0f0
commit 9b25155ec8
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

View file

@ -84,11 +84,9 @@ popd
msg "Install kernel package..."
sudo pacman \
--root ./qcow2 \
--config /usr/share/devtools/pacman-extra-riscv64.conf \
sudo arch-chroot qcow2 pacman \
--noconfirm \
-S linux linux-firmware dracut dracut-hook
-Syu linux linux-firmware dracut dracut-hook
sudo arch-chroot qcow2 dracut --force --add "qemu qemu-net" --regenerate-all
sudo arch-chroot qcow2 mkdir -p boot/extlinux