Skip to content

Commit

Permalink
Always enable systemd startup scripts for Second Stage and Firstboot
Browse files Browse the repository at this point in the history
- The approach with %service_add_post works only for new installations
  but doesn't work for upgrades
- bsc#924278
  • Loading branch information
kobliha committed Apr 16, 2015
1 parent e2e7870 commit b1389ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/yast2-installation.spec
Expand Up @@ -169,6 +169,12 @@ install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}

%service_add_post YaST2-Second-Stage.service YaST2-Firstboot.service

# bsc#924278 Always enable these services by default, they are already listed
# in systemd-presets-branding package, but that works for new installations
# only, it does not work for upgrades
systemctl enable YaST2-Second-Stage.service
systemctl enable YaST2-Firstboot.service

%pre
%service_add_pre YaST2-Second-Stage.service YaST2-Firstboot.service

Expand Down

0 comments on commit b1389ca

Please sign in to comment.