archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Archinstall crashing when trying to create LUKS Encrypted Btrfs installation

Open 0xDezzy opened this issue 1 year ago • 2 comments

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.

0xDezzy avatar Oct 17 '24 01:10 0xDezzy

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?

svartkanin avatar Oct 17 '24 09:10 svartkanin

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.

0xDezzy avatar Oct 18 '24 21:10 0xDezzy

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

svartkanin avatar Oct 21 '24 10:10 svartkanin