Skip to content

Detect alpine initrd files named initramfs*; use rootfstype=ext4 for an ext4 root fs

Andrew Tonner requested to merge rakslice/os-prober:alpine_initramfs into master

Changes:

  • For kernel files starting vmlinu[zx] check for initrd files starting initramfs
  • If the the root fs type is ext4, use kernel param rootfstype=ext4 to ensure the root can be mounted correctly

This fixes a couple issues I ran into with linux-boot-prober based grub config for an Alpine Linux single partition ext4 root detected via 90fallback:

  • The initramfs* filenames of the initrd weren't recognized
  • The resulting boot got stuck at trying to mount the root fs as it wasn't being treated as ext4

Merge request reports

Loading