diff options
author | Milton D. Miller II <miltonm@us.ibm.com> | 2016-02-28 18:13:58 -0600 |
---|---|---|
committer | Milton D. Miller II <miltonm@us.ibm.com> | 2016-03-03 14:46:58 -0600 |
commit | 648f0a8c51e2edfa86a7e0b7937037d70b3e4257 (patch) | |
tree | caa9f6cf0895c55f9f402523ee84cfa77a61881d /meta-phosphor/common/recipes-phosphor | |
parent | 042e237165a43bc519b725a2c5158c42e2c312b4 (diff) | |
download | talos-openbmc-648f0a8c51e2edfa86a7e0b7937037d70b3e4257.tar.gz talos-openbmc-648f0a8c51e2edfa86a7e0b7937037d70b3e4257.zip |
shutdown: Call update from /run/initramfs directory
While both are the same directory via bind mount when shutdown
is executing from systemd use the full pathname to the script.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh index bae572b71..7d79cf0c9 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh @@ -30,7 +30,9 @@ do done set +x +update=/run/initramfs/update image=/run/initramfs/image- + if test -s /run/fw_env -a -c /run/mtd:u-boot-env -a ! -e ${image}u-boot-env && ! cmp /run/mtd:u-boot-env /run/fw_env then @@ -39,11 +41,11 @@ fi if ls $image* > /dev/null 2>&1 then - if test -x /update + if test -x $update then - /update + $update else - echo 1>&2 "Flash update requested but /update program missing!" + echo 1>&2 "Flash update requested but $update program missing!" fi fi |