[CentOS] How to avoid "firstboot" in CentOS 7 kickstart

Wed Jan 11 15:36:47 UTC 2017
Gordon Messmer <gordon.messmer at gmail.com>

On 01/11/2017 05:22 AM, Tru Huynh wrote:
> %post
> # workaround required but should be handled by anaconda. imho
> systemctl disable initial-setup-graphical.service


Has this been tested?  My understanding is that systemctl doesn't work 
in chroots, and can't be used in %post.

Regardless of that, the graphical initial setup on 7.3 is probably 
provided by gnome-initial-setup under GDM, not by 
initial-setup-graphical at all.  The only way I've been able to disable 
it is to remove that rpm entirely, which means that new users also don't 
get the initial-setup prompts when they log in for the first time.