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

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



> 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


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