You are not logged in.

#1 2022-08-11 15:25:51

leomeinel
Member
Registered: 2022-08-01
Posts: 33

[SOLVED] VM: Grub doesn't load encrypted disk from RAID1

Dear Arch Forums,

I recently set up a script to install Arch to an encrypted RAID 1 on btrfs.
I had it booting and everything worked fine. Recently I made some changes for the installation to better fit my needs but didn't change mkinitcpio.conf or grub.conf.
The encryption is also still set up in the same way and the RAID too, except that I am now setting the correct hostname while creating it with

mdadm --homehost=<hostname>

It stopped booting max. 48h ago, I can't tell which commit caused this, but maybe someone can find the error in my commit log.
Another weird thing is that Grub recognizes the correct passphrase (If it is incorrect, it shows an error) but it doesn't manage to load the system.
Grub just doesn't continue and accepts no input after entering it.
May be a bug with Grub or just me doing something wrong.

Link to the script:
https://github.com/LeoMeinel/mdadm-encrypted-btrfs

If anyone is willing to look into this, I'd greatly appreciate it! smile
At the moment I can only use a mac to test stuff and to set up the VM because I am not at home, so I am kind of limited.

Last edited by leomeinel (2022-08-12 12:29:37)

Offline

#2 2022-08-12 12:29:09

leomeinel
Member
Registered: 2022-08-01
Posts: 33

Re: [SOLVED] VM: Grub doesn't load encrypted disk from RAID1

The issue has been fixed by editing

mdadm --homehost=<hostname>

to

mdadm --homehost=any

For more details see https://github.com/LeoMeinel/mdadm-encr … rfs/pull/4
This might be intended behaviour but seems like a bug to me.

Offline

Board footer

Powered by FluxBB