I have been experiencing an intermittent problem when installing CentOS 7 from a USB stick, using the network installer. The kickstart file is found via URL and installation proceeds normally, through setting up the drives. After the screen switches to "starting installer," sometimes the installer will immediately quit and reboot (unless I give the inst.nokill option, where it will halt instead of rebooting). Sometimes the process works correctly without any change in the procedure I follow. I managed to save the log files in /tmp from one such problem occurrence and found nothing in there to indicate what went wrong. To diagnose this problem, what should I be looking at? I am willing to post logs etc. but I would like to know what is the most useful to post. A colleague of mine has also been experiencing the same problem with an entirely independently-created kickstart file installed using the netinstaller from a DVD.
Here is my kickstart file (changed only slightly to not give out my root password hash):
# Automatically generated file. DO NOT EDIT DIRECTLY. Instead, edit the source
# files that are used to create this file.
#
install
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --noipv6
timezone --utc America/New_York
rootpw --iscrypted xxx
selinux --disabled
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
firstboot --disable
%include /tmp/ks-platform
part /boot --fstype="ext4" --size=500
part pv.1 --fstype="lvmpv" --size=500 --grow
volgroup vg1 pv.1
logvol / --vgname=vg1 --size=500 --grow --fstype=ext4 --name=root --label="Fedora"
# Current releases
url --url="http://mirror.centos.org/centos/$releasever/os/$basearch"
repo --name=epel --baseurl=http://dl.fedoraproject.org/pub/epel/$releasever/$basearch/
# CentOS-specific stuff
eula --agreed
graphical
xconfig --startxonboot
%packages
@base
@core
@^graphical-server-environment
@network-file-system-client
@networkmanager-submodules
@x11
epel-release
epel-release.noarch
cinnamon
kernel-devel
kernel-headers
yum-plugin-priorities
gdb
strace
gcc
-gnome-initial-setup
%end
%pre
#!/bin/bash -x
#
# Changes made at runtime are all done here
export PATH=$PATH:/mnt/sysimage/sbin:/mnt/sysimage/bin
f=/tmp/ks-platform
rm -f $f
radeon=0
nvidia=0
apple=0
drive=sda
lspci | grep -q -i radeon
if [[ $? == 0 ]]; then radeon=1; fi
lspci | grep -q -i nvidia
if [[ $? == 0 ]]; then nvidia=1; fi
grep -q -i "Apple Inc" /sys/firmware/dmi/entries/*/*
if [[ $? == 0 ]]; then apple=1; fi
cat /proc/partitions | grep -q -i nvme0n1
if [[ $? == 0 ]]; then drive=nvme0n1; fi
echo clearpart --initlabel --drives=$drive --all >> $f
net_device=($(cat /proc/net/dev | grep : | grep -v lo: | sort -n -r -k2 | sed -e 's,:.*,,'))
for g in "${net_device[@]}"; do
echo network --bootproto=dhcp --device=$g --noipv6 --activate --onboot yes >> $f
done
echo firewall --enable --trust=${net_device[0]} >> $f
if (( $apple )); then
# Apple needs special macefi partition type
echo part /boot/efi --fstype=\"macefi\" --size=200 --label=\"Linux HFS+ ESP\" >> $f
else
echo part /boot/efi --fstype=\"efi\" --size=200 --label=\"Linux HFS+ ESP\" >> $f
fi
if (( $nvidia )); then
# nvidia needs to disable kernel mode setting with nouveau
echo bootloader --location=mbr --driveorder=$drive --boot-drive=$drive --append=\"nouveau.modeset=0\" >> $f
else
# Most use default autodetected driver (radeon, intel)
echo bootloader --location=mbr --driveorder=$drive --boot-drive=$drive >> $f
fi
%end
enter code here