aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2022-09-03 00:10:56 +0200
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-09-04 18:44:47 -0500
commitd21dde73ba175dd73192e60dc8060779fcbc1ec3 (patch)
tree2ced6e3520b941d52dca6e1f7c297f0220359e5e /init.d
parent9b08de926b0ea2fd95d5d9f8cb3463eb3cd72d02 (diff)
init.d/root: don't remount swap
While refactoring the changes proposed in #533 a minor error was introduced were the root service will now attempt to remount swap. This will fail with the error message `mountinfo: 'swap' is not a mountpoint`. This fixes #546
Diffstat (limited to 'init.d')
-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
}