summaryrefslogtreecommitdiffstats
path: root/etc/rc.initdiskless
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-11-01 01:36:58 +0000
committerbrooks <brooks@FreeBSD.org>2005-11-01 01:36:58 +0000
commitd41eafedf75ba755f52b455a71b22a7728bc3f3b (patch)
tree9fecfeec3cdb368877d5548d4515f20891b27d48 /etc/rc.initdiskless
parent419a678b5ed2726669802447de5ae70e551bdc4c (diff)
downloadFreeBSD-src-d41eafedf75ba755f52b455a71b22a7728bc3f3b.zip
FreeBSD-src-d41eafedf75ba755f52b455a71b22a7728bc3f3b.tar.gz
Add items to unmount to the front of the list so they are unmounted in
reverse (thus allowing /conf to be unmounted).
Diffstat (limited to 'etc/rc.initdiskless')
-rw-r--r--etc/rc.initdiskless4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless
index 4e77e74..2271231 100644
--- a/etc/rc.initdiskless
+++ b/etc/rc.initdiskless
@@ -269,7 +269,7 @@ for i in ${templates} ; do
nfspt=`/bin/cat $j/remount`
$nfspt $j
chkerr $? "$nfspt $j"
- to_umount="${to_umount} $j" # XXX hope it is really a mount!
+ to_umount="$j ${to_umount}" # XXX hope it is really a mount!
fi
# NFS remount
@@ -281,7 +281,7 @@ for i in ${templates} ; do
fi
mount_nfs $nfspt $j
chkerr $? "mount_nfs $nfspt $j"
- to_umount="${to_umount} $j"
+ to_umount="$j ${to_umount}"
fi
done
done
OpenPOWER on IntegriCloud