From 9dd0629b9043ea843b5918b6cee1f3defa40b8e3 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Jun 2020 11:10:11 +0200 Subject: [PATCH] Adding clearpart to kickstart/template-centos7.ks --- kickstart/template-centos7.ks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kickstart/template-centos7.ks b/kickstart/template-centos7.ks index 19e6b6a..9efe19f 100644 --- a/kickstart/template-centos7.ks +++ b/kickstart/template-centos7.ks @@ -46,12 +46,16 @@ timezone Europe/Berlin ########################################### # Partitioning and Disk +# Partition clearing information +# clearpart --all --drive=sda +clearpart --all --initlabel + # System bootloader configuration bootloader --append="net.ifnames=0 biosdevname=0" --location=mbr # Disk partitioning information part /boot --fstype ext4 --size=512 --ondisk=sda -part swap --size=${SWAP_SIZE_MB} --ondisk=sda +part swap --size=${SWAP_SIZE_MB} --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup vgroot pv.01 logvol /home --vgname=vgroot --name=home --size=4096 -- 2.39.5