Re: [firstboot] Don't enable firstboot service on upgrade (#626676)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/firstboot.spec b/firstboot.spec
> index be3e7fd..a348536 100644
> --- a/firstboot.spec
> +++ b/firstboot.spec
> @@ -49,7 +49,7 @@ rm %{buildroot}/%{_datadir}/firstboot/modules/additional_cds.py*
>  rm -rf %{buildroot}
>  
>  %post
> -if ! [ -f /etc/sysconfig/firstboot ]; then
> +if [ $1 -ne 2 -a ! -f /etc/sysconfig/firstboot ]; then
>    systemctl enable firstboot-text.service >/dev/null 2>&1 || :
>    systemctl enable firstboot-graphical.service >/dev/null 2>&1 || :
>  fi

Ship it!

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux