archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.15k stars 532 forks source link

Archinstall crashing when trying to create LUKS Encrypted Btrfs installation #2735

Open 0xDezzy opened 1 week ago

0xDezzy commented 1 week ago

Which ISO version are you using?

2024.10.01

The installation log

https://0x0.st/XIum.log

describe the problem

Description of the issue

I was installing using a VMWare workstation VM with my second physical disk passed through to it

Then it failed when trying to actually install arch while trying to partition the disks.

svartkanin commented 1 week ago

Hmm I run an installation with your config and everything installed just fine, the encryption worked as expected. Looking at the config I also can't see anything that might cause the issue as your using the default layouts. Best answer I have atm is to run it again?

0xDezzy commented 1 week ago

I took a deeper look and it was due to a residual LUKS header on one of the partitions. I overwrote the first gig of each partition to be sure and it worked after that, but then I encountered a different issue with the keyring sync. I noticed a separate issue about that but I'll focus on this issue here.

Is there a way we can make sure that the archinstall script formats the disk to prevent this issue when trying to install over an existing LUKS partition? I tested a few things to make sure that it was the existing LUKS partition with a key and sure enough that was the issue. I had an install of Endeavour OS that I was trying to install over and then this issue popped up. To fix it I ran dd if=/dev/zero of=/dev/nvme0n1px bs=1M count=1024 status=progress where x was the partition and it worked after that.

svartkanin commented 6 days ago

I wasn't able to reproduce this, but I've raised a fix that should hopefully fix the problem