Hello all.

Seems the first install on (used) bare metal HW found a problem.
Previous tests with a VM worked OK.

During the first reinstall on a bare metal server that already contained an installed system, mke2fs hung.

I switched to a second console to look at the issue and found that stderr tmpfile for mke2fs contains "Found a dos partition table in /dev/sda2" and stdio tmpfile "prompts" with "Proceed anyway? (n/Y)". Giving a 'y' in the main console lets it proceed, but it shouldn't have stopped.

It seems the wipefs -af /dev/sda* before parted is not enough. Maybe a second wipefs is needed between parted and mkfs [*]?

IIUC it's quite a corner case (new gpt partition overlapping an old dos extended partition), but probably it's better to handle it.

[*] https://unix.stackexchange.com/questions/394984/partition-still-encrypted-with-luks-after-wipefs/394999#394999

HIH.

--
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786

Antwort per Email an