summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-18 20:30:51 +0200
committerErich Eckner <git@eckner.net>2019-08-18 20:30:51 +0200
commit1dc58c05bef6beb7dd99b57c865cbcb920064fe6 (patch)
treecdd9cbe838eafac94149da4f89e2b05096bbfa6a
parent13144e19206e3021892868fad88c20fc4d1943c8 (diff)
downloadupdate-all-1dc58c05bef6beb7dd99b57c865cbcb920064fe6.tar.xz
update-me: do not remount /boot on crux
-rw-r--r--update-me.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/update-me.in b/update-me.in
index 0b4c48d..09025fc 100644
--- a/update-me.in
+++ b/update-me.in
@@ -8,7 +8,8 @@ if mountpoint -q /boot \
&& mount \
| grep -wF '/boot' \
| cut -d' ' -f6 \
- | grep -qwF 'ro'; then
+ | grep -qwF 'ro' \
+&& [ ! -d '#ETCDIR#/ports' ]; then
preCmds+=('mount -o remount,rw /boot')
postCmds+=('mount -o remount,ro /boot')
fi