summaryrefslogtreecommitdiff
path: root/poky/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorRobert Ercean Dima <robert3@meta.com>2025-08-18 13:40:15 +0300
committerPatrick Williams <patrick@stwcx.xyz>2025-08-28 22:33:48 +0300
commite0bd4afee3ba564e5dd1e8752748ae9bd2407713 (patch)
tree2fe3dd7d00810dc8902d41b6a6adc2d48174b14e /poky/scripts/lib/scriptutils.py
parent2a39f7f8a6c6b056d318ccf9628106ac9c5587ea (diff)
downloadopenbmc-e0bd4afee3ba564e5dd1e8752748ae9bd2407713.tar.xz
phosphor-static-norootfs-init: Add script that remounts /run/mnt-persist as read-only
Platforms could use this common script when hard power-cycling. Remounting the filesystem as read-only helps in avoiding possible data corruption. Test Plan: - Add logic around using this script inside yosemite4. - In yosemite4 a sled cycle is hard powercycle of the whole platform. - See the filesystem being remounted as read-only when calling sled-cycle ... Execute sled cycle o "/xyz/openbmc_project/logging/entry/120914" Starting sled cycle... Attempting to remount /run/mnt-persist as read-only with a number of 3 retries Succeeded to remount /run/mnt-persist as read-only ... Change-Id: I6dc837e0441f3cdb1345ba84856bc64ea5205a13 Signed-off-by: Robert Ercean Dima <robert3@meta.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'poky/scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions