From d21dde73ba175dd73192e60dc8060779fcbc1ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 3 Sep 2022 00:10:56 +0200 Subject: [PATCH] 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 --- init.d/root.in | 8 ++++++-- 1 file 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 }