aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/modloop.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-23 07:20:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-23 07:32:27 +0000
commitd211f6a58f8a130b0ab7aefbf0ae9317c480d200 (patch)
treed3b8c1447e27a415aa40713411504c43d005e182 /main/openrc/modloop.initd
parent13f1e7095cdf07b0c1a4428e4e56866f86f94db3 (diff)
downloadaports-d211f6a58f8a130b0ab7aefbf0ae9317c480d200.tar.bz2
aports-d211f6a58f8a130b0ab7aefbf0ae9317c480d200.tar.xz
openrc: modloop: fix finding nfs in /proc/mounts
Also fix finding UUID=... in fstab while at it ref #4015
Diffstat (limited to 'main/openrc/modloop.initd')
-rw-r--r--main/openrc/modloop.initd3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/openrc/modloop.initd b/main/openrc/modloop.initd
index c59cd9a7d9..19be59de00 100644
--- a/main/openrc/modloop.initd
+++ b/main/openrc/modloop.initd
@@ -33,6 +33,7 @@ find_mnt() {
local dev mnt fs mntopts chk
case "$search_dev" in
UUID=*|LABEL=*|/dev/*);;
+ nfs) search_dev="${KOPT_alpine_dev#nfs:}";;
*) search_dev=/dev/$search_dev;;
esac
local search_real_dev=$(resolve_dev $search_dev)
@@ -64,7 +65,7 @@ find_media() {
alpine_mnt=$(find_mnt $alpine_dev /proc/mounts)
if [ -z "$alpine_mnt" ]; then
# then we check fstab
- alpine_mnt=$(find_mnt /dev/$alpine_dev /etc/fstab)
+ alpine_mnt=$(find_mnt $alpine_dev /etc/fstab)
else
alpine_mounted=yes
fi