[CentOS] Kickstart - part ignore onpart ??

Wed Feb 15 19:04:28 UTC 2017
Andreas Benzler <andreas at benzlerweb.de>

Hello Guys,

after hours of uncessfull create example before i forward special
parition tests.

part ignoe --onpart

But Installation hang out for parition the harddisk.

jump to another console partitions are ok ?

Which line/lines is/are missing?

Andy




#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=de-nodeadkeys --xlayouts='de (nodeadkeys)'
# System language
lang de_DE.UTF-8

# Network information
network  --bootproto=dhcp --device=enp0s3 --ipv6=auto --no-activate
network  --hostname=localhost.localdomain

# Root password
rootpw --iscrypted $6$ZzmFRmN6XqC0.Mc4
$LVrBwcqgnv5kIU5mM8e424PDPD7P1dq342lIZrB9gVFzv6EzSRPTGfLyH/M4yf88iwUpOK/XidvqWiYVl8xcG1
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Berlin --isUtc
user --groups=wheel --name=andy --password=$6$gpkn155QMucNw0DC
$TUuSuPCe5NEdFyoF/e.bKzrEHvE7W5gyYqNMCmKbkdLIyUnq1qAD5A/.ax/r6DU1MspPnrUzpuWw7rEzOD9hM. --iscrypted --gecos="Andreas Benzler"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Disk partitioning information
part	/boot	--onpart=/dev/sda1
part	/	--onpart=/dev/sda2
part	swap	--onpart=/dev/sda3

selinux --disabled

%packages
@^minimal
@core
chrony
kexec-tools
%end

%pre
# clear the MBR and partition table
dd if=/dev/zero of=/dev/sda bs=512 count=1
parted -s /dev/sda mklabel msdos

TOTAL=`parted -s /dev/sda unit mb print free | grep Free | awk '{print
$3}' | cut -d "M" -f1`
let SWAP_START=$TOTAL-820
let ROOT_END=$TOTAL-128-820
parted -s /dev/sda mkpart primary ext2 0 128
parted -s /dev/sda mkpart primary ext2 128 $ROOT_END
parted -s /dev/sda mkpart primary linux-swap $SWAP_START $TOTAL

mkfs.ext2 /dev/sda1
mkfs.ext2 /dev/sda2
mkswap /dev/sda3

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges
--notempty
                                  %end