Commit 2a28972c authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'mkinitcpio-fallback' into 'master'

Fix boot issues caused by missing modules in the initramfs

See merge request !155
parents 1684b4a6 fc82d33a
Pipeline #4913 passed with stages
in 36 minutes and 4 seconds
......@@ -54,7 +54,7 @@ function start_qemu() {
{ qemu-system-x86_64 \
-machine accel=kvm:tcg \
-smp 4 \
-m 768 \
-m 1024 \
-net nic \
-net user \
-kernel vmlinuz-linux \
......@@ -83,6 +83,17 @@ function image_cleanup() {
# Remove pacman key ring for re-initialization
rm -rf "${MOUNT}/etc/pacman.d/gnupg/"
# The mkinitcpio autodetect hook removes modules not needed by the
# running system from the initramfs. This make the image non-bootable
# on some systems as initramfs lacks the relevant kernel modules.
# Ex: Some systems need the virtio-scsi kernel module and not the
# "autodetected" virtio-blk kernel module for disk access.
# So for the initial install we use the fallback initramfs, and
# "autodetect" should add the relevant modules to the initramfs when
# the user updates the kernel.
cp -a "${MOUNT}/boot/"{initramfs-linux-fallback.img,initramfs-linux.img}
sync -f "${MOUNT}/etc/os-release"
fstrim --verbose "${MOUNT}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment