summaryrefslogtreecommitdiff
path: root/update-me.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-me.in')
-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