[CentOS] Kickstart issue with UEFi
Gordon Messmer
gordon.messmer at gmail.comSun Aug 21 02:48:58 UTC 2016
- Previous message: [CentOS] Kickstart issue with UEFi
- Next message: [CentOS] Kickstart issue with UEFi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 08/19/2016 11:35 PM, Phil Manuel wrote: > The install fails under UEFi due to the fact the partitions are not cleared, and it doesn’t have any space to continue. Is there an extra step I need to do to remove the original partitions before the new layout will work ? Yes. If you have pre-existing RAID partitions, they'll automatically assemble before Anaconda runs, and the installer won't be able to remove them. It's easiest to handle this interactively, using wipefs to clear the filesystems, RAID metadata, and disks. Because my systems are fairly predictable, I have a function in my kickstart file that I run from the %pre script when I specify a keyword in the boot parameters. You'll want to do something similar... Stop logical volumes if present. Wipe filesystems with wipefs, and then stop the RAID volumes. Finally, wipe the disk partition table. wipedisks() { vgchange -a n test -b /dev/md/efi && wipefs -a /dev/md/efi && mdadm --stop /dev/md/efi test -b /dev/md/boot && wipefs -a /dev/md/boot && mdadm --stop /dev/md/boot test -b /dev/md/primary && wipefs -a /dev/md/primary && mdadm --stop /dev/md/primary for x in /dev/md/* do mdadm --stop $x done for x in ${drives[@]} do for p in /dev/${x}[0-9]* do wipefs -a $p done wipefs -a $x done }
- Previous message: [CentOS] Kickstart issue with UEFi
- Next message: [CentOS] Kickstart issue with UEFi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list