Add archiso initramfs hooks so the live ISO can switch root
The profile shipped boot configs and the package list but lacked the
mkinitcpio archiso configuration, so mkarchiso built a stock initramfs
with no archiso hook. At boot the kernel honoured archisosearchuuid/
archisobasedir but nothing knew how to find and mount airootfs.sfs, so
switch-root failed and the live medium dropped to emergency mode.
Add the canonical releng pieces:
- airootfs/etc/mkinitcpio.conf.d/archiso.conf (HOOKS incl. archiso)
- airootfs/etc/mkinitcpio.d/linux.preset (builds initramfs-linux.img)
- mkinitcpio{,-archiso,-nfs-utils} in packages.x86_64
This commit is contained in:
parent
159d14774e
commit
6b20163c92
3 changed files with 17 additions and 0 deletions
3
iso/airootfs/etc/mkinitcpio.conf.d/archiso.conf
Normal file
3
iso/airootfs/etc/mkinitcpio.conf.d/archiso.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
HOOKS=(base udev microcode modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
|
||||||
|
COMPRESSION="xz"
|
||||||
|
COMPRESSION_OPTIONS=(-9e)
|
||||||
8
iso/airootfs/etc/mkinitcpio.d/linux.preset
Normal file
8
iso/airootfs/etc/mkinitcpio.d/linux.preset
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# mkinitcpio preset file for the 'linux' package on archiso
|
||||||
|
|
||||||
|
PRESETS=('archiso')
|
||||||
|
|
||||||
|
ALL_kver='/boot/vmlinuz-linux'
|
||||||
|
archiso_config='/etc/mkinitcpio.conf.d/archiso.conf'
|
||||||
|
|
||||||
|
archiso_image="/boot/initramfs-linux.img"
|
||||||
|
|
@ -12,6 +12,12 @@ btrfs-progs
|
||||||
dosfstools
|
dosfstools
|
||||||
mtools
|
mtools
|
||||||
# Live-ISO boot (archiso bootmodes: bios.syslinux + uefi.systemd-boot)
|
# Live-ISO boot (archiso bootmodes: bios.syslinux + uefi.systemd-boot)
|
||||||
|
# mkinitcpio-archiso provides the initramfs hooks that find and mount
|
||||||
|
# airootfs.sfs and switch root into it — without it the live ISO drops
|
||||||
|
# to emergency mode on boot.
|
||||||
|
mkinitcpio
|
||||||
|
mkinitcpio-archiso
|
||||||
|
mkinitcpio-nfs-utils
|
||||||
syslinux
|
syslinux
|
||||||
memtest86+
|
memtest86+
|
||||||
memtest86+-efi
|
memtest86+-efi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue