Hallo,
ich versuche ein arch linux auf meinem Laptop zu installieren.
Weil ich vom 08/15-Schema abweiche (Details würden hier zu weit führen
und tun nichts zur Sache), brauche ich ein "custom initramfs" auf
einem bootfähigen USB-Stick.
Den bootfähigen Stick habe ich, auch das selbst gemachte initramfs ist
drauf, d.h. der Boot klappt bis ins initramfs. Ich habe konfiguriert,
dass ich vor dem Mounten des rootfs eine Shell bekomme, in der ich mir
den Stand der Dinge ansehen kann. Auch das klappt, aber:
- es fehlt ein entscheidendes File (/boot/lukskey-open). lsinitrd
listet es auf, aber im tatsächlichen initram kann ich es nicht
finden.
- die Laptop-Tastatur geht nicht (eine USB-Tastatur schon).
/boot/initramfs-linux.img und /boot/initramfs-linux-fallback.img
machen keinen Unterschied.
Ich verwende außerdem GRUB.
Soweit ich sehe, treten keine Fehler auf.
Ich habe alle Hinweise, die mir bekannt sind (<hauptsächlich
https://wiki.archlinux.org/title/mkinitcpio>) beachtet.
Ich weiß nicht weiter. Hat jemand einen Tipp?
N.
Das ganze sieht so aus:
[root@archiso ~]# grep -r -E -v '^#|^$' /etc/mkinitcpio.*
/etc/mkinitcpio.conf:MODULES=(usbhid xhci_hcd atkbd i8042)
/etc/mkinitcpio.conf:BINARIES=(find)
/etc/mkinitcpio.conf:FILES=(/boot/lukskey-open)
/etc/mkinitcpio.conf:HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont encrypt lvm2 block filesystems fsck)
/etc/mkinitcpio.conf_orig:MODULES=()
/etc/mkinitcpio.conf_orig:BINARIES=()
/etc/mkinitcpio.conf_orig:FILES=()
/etc/mkinitcpio.conf_orig:HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)
/etc/mkinitcpio.d/linux.preset:ALL_config="/etc/mkinitcpio.conf"
/etc/mkinitcpio.d/linux.preset:ALL_kver="/boot/vmlinuz-linux"
/etc/mkinitcpio.d/linux.preset:PRESETS=('default' 'fallback')
/etc/mkinitcpio.d/linux.preset:default_image="/boot/initramfs-linux.img"
/etc/mkinitcpio.d/linux.preset:fallback_image="/boot/initramfs-linux-fallback.img"
/etc/mkinitcpio.d/linux.preset:fallback_options="-S autodetect"
[root@archiso ~]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 6.1.9-arch1-2
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [lvm2]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 6.1.9-arch1-2
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [lvm2]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
[root@archiso ~]# ls -l /boot/initramfs-linux*
-rwxr-xr-x 1 root root 74542328 Feb 18 08:30 /boot/initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 21979050 Feb 18 08:29 /boot/initramfs-linux.img
[root@archiso ~]# grep -r -E -v '^#|^$' /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=7"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/swap dolvm cryptdevice=UUID=bf5ade54-1452-4dfa-b8a8-4ec18e142732:luksvg-slash rootfstype=btrfs cryptkey=rootfs:/boot/lukskey-open keymap=de real_root=/dev/mapper/luksvg-slash break=premount"
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
[root@archiso ~]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@archiso ~]# grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported.
[root@archiso ~]# cp /boot/EFI/EFI/GRUB/grubx64.efi /boot/EFI/BOOT/bootx64.efi
[root@archiso ~]# ls -lR /boot/EFI/
/boot/EFI/:
total 8
drwxr-xr-x 2 root root 4096 Feb 12 20:40 BOOT
drwxr-xr-x 3 root root 4096 Feb 11 22:33 EFI
/boot/EFI/BOOT:
total 148
-rwxr-xr-x 1 root root 151552 Feb 18 08:33 bootx64.efi
/boot/EFI/EFI:
total 4
drwxr-xr-x 2 root root 4096 Feb 11 22:33 GRUB
/boot/EFI/EFI/GRUB:
total 148
-rwxr-xr-x 1 root root 151552 Feb 18 08:32 grubx64.efi
[root@archiso /]# lsinitrd /boot/initramfs-linux.img
Image: /boot/initramfs-linux.img: 21M
========================================================================
Version:
Arguments:
dracut modules:
========================================================================
-rw-r--r-- 0 root root 2 Jan 1 1970 VERSION
lrwxrwxrwx 0 root root 7 Jan 1 1970 bin -> usr/bin
drwxr-xr-x 0 root root 0 Jan 1 1970 boot/
-rwxr-xr-x 0 root root 512 Jan 1 1970 boot/lukskey-open
[...]
--
Vermiete Signatur, 320 Zeichen^2 (4x80 Zeichen) für 42 Lewonzen im Monat.
Keine Provision, keine Maklergebühr, renoviert, günstige Lage.