slashbeast / better-initramfs

Small and reliable initramfs solution supporting (remote) rescue shell, lvm, dmcrypt luks, software raid, tuxonice, uswsusp and more.
BSD 3-Clause "New" or "Revised" License
318 stars 54 forks source link

Do not die with RAID #36

Closed zx2c4 closed 8 years ago

zx2c4 commented 8 years ago

The UUIDs of disks in particular RAID setups are the same. So, we need this symlinking to carry the -f so that we don't get a fatal error.

Signed-off-by: Jason A. Donenfeld Jason@zx2c4.com

slashbeast commented 8 years ago

What raid do you use by the way?

I am almost 100% sure that UUIDs of mdraid devices, even in raid1 configuration, aren't the same. But I also remember that btrfs's raid could have the same uuid.

Anyway, merging it as the overwrite won't harm, and the same label can happen anyway.

Thanks.

zx2c4 commented 8 years ago

I just use mdadm, with the 0.9 type for my boot partition. /dev/sda1 and /dev/sdb1 have the same data on them.