Skip to content

Commit

Permalink
vagrant(arch): temporarily switch to an LTS kernel
Browse files Browse the repository at this point in the history
Which seems to help with #660.
  • Loading branch information
mrc0mmand committed Sep 28, 2023
1 parent 594f04f commit 7615383
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vagrant/boxes/archlinux_systemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ MACHINE_ID="$(</etc/machine-id)"
# image in the respective kernel package. The additional sed shenanigans just ensure
# we return non-zero if we, for whatever reason, fail to parse the version, just to make
# debugging easier.
KERNEL_VER="$(pacman -Ql linux | grep vmlinuz | sed -nr 's/^.+\/([^/]+)\/vmlinuz$/\1/p;tx;q1;:x')"
pacman --noconfirm -S linux-lts
KERNEL_VER="$(pacman -Ql linux-lts | grep vmlinuz | sed -nr 's/^.+\/([^/]+)\/vmlinuz$/\1/p;tx;q1;:x')"

bootctl install
cat >/efi/loader/entries/arch.conf <<EOF
Expand All @@ -207,8 +208,8 @@ options root=UUID=$(findmnt -n -o UUID /) rw console=ttyS0 net.ifnames=0
EOF
# Follow the recommended layout from the Boot Loader Specification
mkdir -p "/efi/$MACHINE_ID/$KERNEL_VER"
mv -v /boot/vmlinuz-linux "/efi/$MACHINE_ID/$KERNEL_VER/linux"
mv -v /boot/initramfs-linux.img "/efi/$MACHINE_ID/$KERNEL_VER/initrd"
mv -v /boot/vmlinuz-linux-lts "/efi/$MACHINE_ID/$KERNEL_VER/linux"
mv -v /boot/initramfs-linux-lts.img "/efi/$MACHINE_ID/$KERNEL_VER/initrd"
bootctl status
pacman -Rcnsu --noconfirm grub
# shellcheck disable=SC2114
Expand Down

0 comments on commit 7615383

Please sign in to comment.