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
This commit is contained in:
parent
9b08de926b
commit
d21dde73ba
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user