Red Hat Enterprise Linux 7.2 キックスタートの初期設定で anaconda-ks.cfg ポストインストールのパースに失敗する
Issue
firstboot --reconfigコマンドを実行すると、キックスタートファイルを使用したキックスタートインストールが行われます。- 再起動後に「初期設定」ウィンドウが表示されますが、
/root/anaconda-ks.cfgのエラーによりinitial-setup-graphicalサービスが停止されます。 - キックスタートにおけるパーティショニングは、以下のとおりです。
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
- サービスを起動したときのエラーは以下のようになります。
[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 6: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
- キックスタートインストール
- Firstboot
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
