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"
|
ebegin "Remounting filesystems"
|
||||||
local mountpoint
|
local mountpoint
|
||||||
for mountpoint in $(fstabinfo); do
|
for mountpoint in $(fstabinfo); do
|
||||||
mountinfo -q "${mountpoint}" && \
|
case "${mountpoint}" in
|
||||||
fstabinfo --remount "${mountpoint}"
|
/*) # Don't remount swap etc.
|
||||||
|
mountinfo -q "${mountpoint}" && \
|
||||||
|
fstabinfo --remount "${mountpoint}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
eend 0
|
eend 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user