Searched hist:a65d30d16bad3521c3c03ccf2b5cef213e825576 (Results 1 – 1 of 1) sorted by relevance
/openbmc/phosphor-state-manager/ |
H A D | obmcutil | a65d30d16bad3521c3c03ccf2b5cef213e825576 Wed Nov 13 01:26:12 CST 2019 Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> Add support for bmcrebootoff and bmcrebooton
In the view of having the system available in fail state, it would be a necessity to have BMC stay in error state and not take reset due to any recovery policy that is specified in the service files. This patch puts the override for reboot, poweroff and halt requests to make those, a NO-OP
If the user needs to reboot the BMC, then "bmcrebooton" must be executed prior to doing the reset.
Tested:
root@witherspoon:/tmp# cd /run/systemd/system/ root@witherspoon:/run/systemd/system# ls
root@witherspoon:/run/systemd/system# /tmp/obmcutil bmcrebootoff
root@witherspoon:/run/systemd/system# ls -l drwxr-xr-x 2 root root 60 Nov 13 08:32 halt.target.d drwxr-xr-x 2 root root 60 Nov 13 08:32 poweroff.target.d drwxr-xr-x 2 root root 60 Nov 13 08:32 reboot.target.d ------------------------------------------------------------------
root@witherspoon:/run/systemd/system# uptime 08:33:41 up 2:19, load average: 0.33, 0.40, 0.31
root@witherspoon:/run/systemd/system# reboot
root@witherspoon:/run/systemd/system# uptime 08:35:21 up 2:21, load average: 0.20, 0.31, 0.28
root@witherspoon:/run/systemd/system# ------------------------------------------------------------------ root@witherspoon:/run/systemd/system# halt
root@witherspoon:/run/systemd/system# uptime 08:40:16 up 2:26, load average: 0.23, 0.19, 0.23
root@witherspoon:/run/systemd/system# ----------------------------------------------------------------- root@witherspoon:/run/systemd/system# /tmp/obmcutil bmcrebooton
root@witherspoon:/run/systemd/system# ls -l halt.target.d/* ls: halt.target.d/*: No such file or directory
root@witherspoon:/run/systemd/system# ----------------------------------------------------------------- root@witherspoon:/etc/systemd/system# /tmp/obmcutil recoveryoff Created symlink /etc/systemd/system/obmc-host-timeout@0.target → /dev/null. Created symlink /etc/systemd/system/obmc-host-crash@0.target → /dev/null.
root@witherspoon:/etc/systemd/system# ls -l /run/systemd/system/ halt.target.d/ poweroff.target.d/ reboot.target.d/
root@witherspoon:/etc/systemd/system# ls -l /run/systemd/system/halt.target.d/reboot-guard.conf -rw-r--r-- 1 root root 29 Nov 13 08:41 /run/systemd/system/halt.target.d/reboot-guard.conf root@witherspoon:/etc/systemd/system# ----------------------------------------------------------------- root@witherspoon:/etc/systemd/system# /tmp/obmcutil recoveryon Removed /etc/systemd/system/obmc-host-timeout@0.target. Removed /etc/systemd/system/obmc-host-crash@0.target.
root@witherspoon:/etc/systemd/system#
root@witherspoon:/run/systemd/system# ls -l halt.target.d/reboot-guard.conf ls: halt.target.d/reboot-guard.conf: No such file or directory -----------------------------------------------------------------
Change-Id: Ic43eeb8517859ae6dbf3b83d053b33758e5ae1b0 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|