Skip to content

Commit

Permalink
Added some comments for clarifying the way halt is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Aug 2, 2018
1 parent eaf840e commit c82df8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/Firstboot-Stage/S09-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@ fi
if [ -e "/var/lib/YaST2/firstboot_halt_after_finish" ] ; then
log "\tHalting system as requested by firstboot..."
rm /var/lib/YaST2/firstboot_halt_after_finish
# Instead of calling halt directly we will rely on systemd
# failed state, that is OnFailure=shutdown.target in the
# YaST2-Firstboot.service (bsc#1095251)
exit 1
fi
2 changes: 2 additions & 0 deletions src/clients/firstboot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def main
@action
)

# The S09-cleanup script is responsible of rebooting or halting the
# system depending on the existence of the specifig flag files
if @action == "halt"
Builtins.y2milestone("Halting the system...")
SCR.Execute(path(".target.bash"),
Expand Down

0 comments on commit c82df8b

Please sign in to comment.