Why does initial-setup fail parsing the anaconda-ks.cfg post installation of Red Hat Enterprise Linux 7.2 Kickstart?

Solution In Progress - Updated -

Issue

  • Kickstart Installation done using kickstart file with firstboot --reconfig.
  • After reboot, no initial setup windows is displayed whereas initial-setup-graphical service is aborted because error in /root/anaconda-ks.cfg
  • The kickstart partitioning is as follows.
clearpart --all --initlabel
part /boot  --size=500 --fstype=xfs --asprimary
part pv.01  --size=1000 --grow
volgroup vgsys pv.01
logvol / --fstype=xfs --name=rootvol --vgname=vgsys --size=9000
logvol /tmp --fstype=xfs --name=tmpvol --vgname=vgsys --percent=2
  • The error while starting the service is as follows.
[root@localhost ~]# service initial-setup-graphical start
Redirecting to /bin/systemctl start  initial-setup-graphical.service
[root@localhost ~]# service initial-setup-graphical status
Redirecting to /bin/systemctl status  initial-setup-graphical.service
● initial-setup-graphical.service - Initial Setup configuration program
   Loaded: loaded (/usr/lib/systemd/system/initial-setup-graphical.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Mon 2016-03-14 06:35:26 MDT; 3s ago
  Process: 10907 ExecStart=/bin/xinit /bin/firstboot-windowmanager /bin/initial-setup -- /bin/Xorg :9 -ac -nolisten tcp (code=exited, status=0/SUCCESS)
  Process: 10906 ExecStartPre=/bin/plymouth quit (code=exited, status=1/FAILURE)
 Main PID: 10907 (code=exited, status=0/SUCCESS)

Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: categories
Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: initializing the Anaconda log
Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: initializing threading
Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: initializing network logging
Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: parsing input kickstart /root/anaconda-ks.cfg
Mar 14 06:35:25 localhost.localdomain initial-setup[10917]: kickstart parsing failed: The following problem occurred on line 49 of the kickstart file:

                                                            --size and --percent cannot both be specified for the same logvol...
Mar 14 06:35:25 localhost.localdomain xinit[10907]: Exception AttributeError: "'NoneType' object has no attribute 'udev_unref'" in <bound met...ignored
Mar 14 06:35:25 localhost.localdomain xinit[10907]: /bin/xinit: connection to X server lost
Mar 14 06:35:26 localhost.localdomain xinit[10907]: waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
Mar 14 06:35:26 localhost.localdomain systemd[1]: Started Initial Setup configuration program.
Hint: Some lines were ellipsized, use -l to show in full.

Environment

  • Red Hat Enterprise Linux 7.2
  • Kickstart Installation
  • Firstboot

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content