refactor(mkimg): using dracut-hook in repo
https://github.com/felixonmars/archriscv-packages/pull/1306 Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
parent
f6c057bb16
commit
0663c3ca83
1 changed files with 1 additions and 16 deletions
17
mkimg.sh
17
mkimg.sh
|
@ -26,13 +26,6 @@ use-fixed-password() {
|
||||||
: # set in rootfs
|
: # set in rootfs
|
||||||
}
|
}
|
||||||
|
|
||||||
msg "Building dracut-hook package..."
|
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/dracut-hook.git
|
|
||||||
pushd dracut-hook
|
|
||||||
extra-riscv64-build
|
|
||||||
popd
|
|
||||||
|
|
||||||
msg "Building u-boot..."
|
msg "Building u-boot..."
|
||||||
|
|
||||||
git clone https://github.com/u-boot/u-boot.git
|
git clone https://github.com/u-boot/u-boot.git
|
||||||
|
@ -82,21 +75,13 @@ sudo e2label /dev/nbd0p1 rootfs
|
||||||
mkdir -p qcow2
|
mkdir -p qcow2
|
||||||
sudo mount /dev/nbd0p1 qcow2
|
sudo mount /dev/nbd0p1 qcow2
|
||||||
|
|
||||||
msg "Install dracut-hook package..."
|
|
||||||
|
|
||||||
sudo pacman \
|
|
||||||
--root ./qcow2 \
|
|
||||||
--config /usr/share/devtools/pacman-extra-riscv64.conf \
|
|
||||||
--noconfirm \
|
|
||||||
-U ./dracut-hook/dracut-hook-0.5.3-1-any.pkg.tar.zst
|
|
||||||
|
|
||||||
msg "Install kernel package..."
|
msg "Install kernel package..."
|
||||||
|
|
||||||
sudo pacman \
|
sudo pacman \
|
||||||
--root ./qcow2 \
|
--root ./qcow2 \
|
||||||
--config /usr/share/devtools/pacman-extra-riscv64.conf \
|
--config /usr/share/devtools/pacman-extra-riscv64.conf \
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
-S linux linux-firmware dracut
|
-S linux linux-firmware dracut dracut-hook
|
||||||
|
|
||||||
sudo arch-chroot qcow2 dracut --force --add "qemu qemu-net" --regenerate-all
|
sudo arch-chroot qcow2 dracut --force --add "qemu qemu-net" --regenerate-all
|
||||||
sudo arch-chroot qcow2 mkdir -p boot/extlinux
|
sudo arch-chroot qcow2 mkdir -p boot/extlinux
|
||||||
|
|
Loading…
Add table
Reference in a new issue