PDA

View Full Version : PXE & Kickstart problems, will not boot into GUI



supertight
25th November 2017, 06:07 PM
I'm having difficulty get a fresh pxe install of Workstation 27, booting directly into the Cinnamon Desktop.

The pxe install takes place without error. However upon reboot, straight to text based log in.
Running

startx will fire up the GUI.

systemctl set-default graphical.target dose not start GUI login after reboot

ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default2.target
mv /etc/systemd/system/default2.target /etc/systemd/system/default.target -y This code is also not working. Does not result in GUI login after reboot.

Here is a copy of the .ks file.


install
url --url http://mirrors.oit.uci.edu/fedora/linux/releases/27/Workstation/x86_64/os/
lang en_US.UTF-8
keyboard us
timezone --utc America/Los Angeles
network --noipv6 --onboot=yes --bootproto dhcp
authconfig --enableshadow --enablemd5
rootpw --iscrypted $6$tDEuLX4g9Sq1e276$2za7fhrsyOTji..1OKsI43WzNErrbb fwNdRpdoyfVYqR48LbU2agqYAmCRY4ZPFy0xPV3lY6aGQIfn4X B1T4//
firewall --enabled --port 22:tcp
selinux --disabled
bootloader --location=mbr --driveorder=sda --append="crashkernel=auth rhgb"

#Install Mode
text

# Disk Partitioning
clearpart --all --initlabel --drives=sda
part /boot --fstype=ext4 --size=200
part pv.1 --grow --size=1
volgroup vg1 --pesize=4096 pv.1

logvol / --fstype=ext4 --name=lv001 --vgname=vg1 --size=6000
logvol /var --fstype=ext4 --name=lv002 --vgname=vg1 --grow --size=1
logvol swap --name=lv003 --vgname=vg1 --size=2048
# END of Disk Partitioning

# Make sure we reboot into the new system when we are finished
reboot

# Package Selection
%packages --excludedocs
@core
-*firmware
-iscsi*
-fcoe*
-b43-openfwwf
kernel-firmware
-efibootmgr
wget
sudo

%end

%pre
%end
%post --log=/root/install-post.log
(
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH

# PLACE YOUR POST DIRECTIVES HERE
) 2>&1 >/root/install-post-sh.log
EOF
dnf update -y
dnf install vim -y
dnf install gdm -y
dnf groupinstall cinnamon-desktop-environment -y
ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default2.target
mv /etc/systemd/system/default2.target /etc/systemd/system/default.target -y

%end


Thank you for reading.