aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/root.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/init.d/root.in b/init.d/root.in
index 32ecdcbb..2f7d82f2 100644
--- a/init.d/root.in
+++ b/init.d/root.in
@@ -48,8 +48,12 @@ start()
ebegin "Remounting filesystems"
local mountpoint
for mountpoint in $(fstabinfo); do
- mountinfo -q "${mountpoint}" && \
- fstabinfo --remount "${mountpoint}"
+ case "${mountpoint}" in
+ /*) # Don't remount swap etc.
+ mountinfo -q "${mountpoint}" && \
+ fstabinfo --remount "${mountpoint}"
+ ;;
+ esac
done
eend 0
}