fix(mkimg): use pacman in chroot and Syu when install packages
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
parent
8e9166c0f0
commit
9b25155ec8
1 changed files with 2 additions and 4 deletions
6
mkimg.sh
6
mkimg.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue