You are not logged in.
Pages: 1
I saw the instructions that said to add the lvm2 hook and raid, and so I set the following in /etc/mkinitcpio.conf:
MODULES=(dm-raid dm_integrity raid0 raid1 raid10 raid456)
HOOKS=(base systemd udev autodetect modconf kms keyboard keymap consolefont block lvm2 filesystems fsckI did see this in the mkinitcpio output:
-> Running build hook: [lvm2]In chroot environment, I see:
/dev/mapper/ArchLinux-root / ext4 rw,relatime 0 0But on the screen when booting the kernel I see:
[ TIME ] Timed out waiting for device /dev/mapper/ArchLinux-root.
[DEPEND] Dependency failed for Initrd Root Devices.
[DEPEND] Dependency failed for /sysroot.
[DEPEND] Dependency failed for Initrd Root File System.
...
Cannot open access to console, the root account is locked.
...What am I missing?
Last edited by klugja (2023-02-23 13:33:27)
Offline
according to this: https://wiki.archlinux.org/title/Mkinit … mmon_hooks
"systemd" and "udev" hooks are conflicting, remove the systemd one and try again.
Offline
I switched from grub to systemd-boot, because the Arch grub didn't work, and I want to remove Ubuntu, which is how I was booting. So now I get a shell and can examine things.
Doing lsmod, I see both raid1, dm_raid, dm_bufio, dm_integrity, dm_mod, md_mod, but there are no /dev/dm- devices, and /dev/mapper is empty.
Does /etc/mdadm.conf need to be copied onto the initramfs somehow? Or should it just assemble all the drives it knows about? The drives all appear under /dev/disk, so that part is populated, but without dm devices this can't work.
The boot screen says:
:: running early hook [udev]
Starting systemd-udevd version 253-1-arch
:: running hook [udev]
:: Triggering uevents
:: running hook [keymap]
:: Loading keymap...done.
Waiting 10 seconds for device /dev/mapper/ArchLinux-root
ERROR: device '/dev/mapper/ArchLinux-root' not found. Skipping fsck.
...Offline
try this: https://wiki.archlinux.org/title/RAID#C … mkinitcpio
interesting how this page does not include that info: https://wiki.archlinux.org/title/Instal … o_for_RAID
Offline
add the mdadm hook if you are using raid
`cat /proc/partitions` to see if block devices were detected at all
you can also use `lvm pvs` (lvm vgs, lvm lvs) to see what lvm detects... with --verbose flags to see what lvm is doing more specifically
Offline
Thanks.
Got it working. Not sure if both of these are essential but I added BINARIES, and mdadm_udev to HOOKS:
/etc/mkinitcpio.conf:
BINARIES=(mdmon)
MODULES=(dm-raid dm_integrity raid0 raid1 raid10 raid456)
HOOKS=(base udev mdadm_udev autodetect modconf kms keyboard keymap consolefont block lvm2 filesystems fsck)Offline
Pages: 1