diff --git a/gnome-initial-setup.spec b/gnome-initial-setup.spec index cd652c8..6a2c63b 100644 --- a/gnome-initial-setup.spec +++ b/gnome-initial-setup.spec @@ -41,6 +41,8 @@ Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units +Provides: user(%name) + %description GNOME Initial Setup is an alternative to firstboot, providing a good setup experience to welcome you to your system, and walks @@ -67,6 +69,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/gdm/greeter/applications/setup-sh %find_lang %{name} +%pre +useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || : + %post if [ $1 -eq 1 ] ; then # Initial installation @@ -78,6 +83,7 @@ fi %postun %systemd_postun +userdel %{name} &>/dev/null || : %files -f %{name}.lang %doc COPYING README