Skip to content

Commit 3b2d467

Browse files
committed
fix: add mkinitcpio and grub-mkconfig to archlinux image
1 parent 0819fa8 commit 3b2d467

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

images/scripts/create-archlinux.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
CLOUD_IMG_URL=https://mirror.pkgbuild.com/images/v20251201.460866/Arch-Linux-x86_64-cloudimg.qcow2
5+
CLOUD_IMG_URL=https://mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-cloudimg.qcow2
66
DISTRIBOX_IMG_PATH="/var/lib/distribox/images/"
77
CLOUD_IMG_SOURCE="${CLOUD_IMG_URL##*/}"
88

@@ -18,7 +18,10 @@ sudo virt-customize -a /tmp/resized_image.qcow2 \
1818
--run-command 'pacman-key --init' \
1919
--run-command 'pacman-key --populate archlinux' \
2020
--run-command 'pacman -Syu --noconfirm' \
21-
--run-command 'pacman -S --noconfirm vim qemu-guest-agent cloud-init grub linux intel-ucode' \
21+
--run-command 'pacman -S --noconfirm vim qemu-guest-agent cloud-init grub linux intel-ucode btrfs-progs' \
22+
--run-command 'mkinitcpio -P' \
23+
--run-command 'grub-install /dev/sda' \
24+
--run-command 'grub-mkconfig -o /boot/grub/grub.cfg' \
2225
--run-command 'fuser -km /dev || true' \
2326
--run-command 'sync'
2427

0 commit comments

Comments
 (0)