summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-10 06:57:45 +0100
committerErich Eckner <git@eckner.net>2020-02-10 06:57:45 +0100
commit34f4402c7d405017d48bd9858ef23a75d99f4254 (patch)
treefff9f1a94592d90f5589c4aa2123d11d954eebd2 /update-me.in
parent3ea9e9f4144a5c374df3f72bab839368eccaf99b (diff)
downloadupdate-all-34f4402c7d405017d48bd9858ef23a75d99f4254.tar.xz
update-me: reboot if `remount ro` unsuccessful
Diffstat (limited to 'update-me.in')
-rw-r--r--update-me.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-me.in b/update-me.in
index 2346122..1df456d 100644
--- a/update-me.in
+++ b/update-me.in
@@ -13,7 +13,7 @@ for mp in '/' '/boot'; do
| grep -qwF 'ro' || continue
[ "${mp}" = '/boot' ] && [ -d '#ETCDIR#/ports' ] && continue
preCmds+=('mount -o remount,rw '"${mp}")
- postCmds+=('mount -o remount,ro '"${mp}")
+ postCmds+=('mount -o remount,ro '"${mp}"' || reboot')
done
if command -v check-kernel >/dev/null; then