diff options
author | Hyotaek Shim <hyotaek.shim@samsung.com> | 2022-01-06 20:32:30 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2022-01-06 20:40:09 +0900 |
commit | 4c96e536e1f90b3ec3dbedaf591d6c7cdb95fb49 (patch) | |
tree | a51b447b2c860eba737e20122b100fe5c0edb2bb | |
parent | 4139bdc40ca8a18ab02ee0dad739fbf50ee87074 (diff) | |
download | systemd-4c96e536e1f90b3ec3dbedaf591d6c7cdb95fb49.tar.gz systemd-4c96e536e1f90b3ec3dbedaf591d6c7cdb95fb49.tar.bz2 systemd-4c96e536e1f90b3ec3dbedaf591d6c7cdb95fb49.zip |
Add device_board_set_boot_success in booting-done.service
/usr/bin/device_board_set_boot_success reports boot success to the bootloader.
If boot success is not reported for, e.g., 10-times booting in a row,
bootloader recovers the system.
-- Bootloader --
If (BOOT_SUCCESS flag is set) {
Clear the BOOT_SUCCESS flag
BOOT_FAIL_COUNT = 0
} Else {
If (++ BOOT_FAIL_COUNT > 10) {
BOOT_FAIL_COUNT = 0
Restore to the other partitions (e.g., b -> a)
Proceed to the recovery booting (ramdisk-recovery, bootmode="recovery")
}
}
Proceed to the normal booting (ramdisk, bootmode="")
Change-Id: I581c5dbcf216806dfcff826bbdf7ca82dc944676
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rw-r--r-- | units/booting-done.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/booting-done.service.in b/units/booting-done.service.in index 41d14ada2c..42c9a5c92f 100644 --- a/units/booting-done.service.in +++ b/units/booting-done.service.in @@ -7,5 +7,6 @@ RefuseManualStop=yes User=system_fw Group=system_fw ExecStart=@rootbindir@/wait-delayed-target.sh +ExecStartPost=-/usr/bin/device_board_set_boot_success RemainAfterExit=yes SmackProcessLabel=System |