svn commit: r254038 - stable/8/tools/tools/zfsboottest
Andriy Gapon
avg at FreeBSD.org
Wed Aug 7 07:33:20 UTC 2013
Author: avg
Date: Wed Aug 7 07:33:19 2013
New Revision: 254038
URL: http://svnweb.freebsd.org/changeset/base/254038
Log:
MFC r253068: zfsboottest.sh: remove checks for things that are not
strictly required
Modified:
stable/8/tools/tools/zfsboottest/zfsboottest.sh
Directory Properties:
stable/8/tools/tools/zfsboottest/ (props changed)
Modified: stable/8/tools/tools/zfsboottest/zfsboottest.sh
==============================================================================
--- stable/8/tools/tools/zfsboottest/zfsboottest.sh Wed Aug 7 07:32:56 2013 (r254037)
+++ stable/8/tools/tools/zfsboottest/zfsboottest.sh Wed Aug 7 07:33:19 2013 (r254038)
@@ -54,11 +54,6 @@ bootfs=`zpool get bootfs "${pool}" | tai
if [ "${bootfs}" = "-" ]; then
bootfs="${pool}"
fi
-# Dataset's mountpoint property should be set to 'legacy'.
-if [ "`zfs get -H -o value mountpoint ${bootfs}`" != "legacy" ]; then
- echo "The \"mountpoint\" property of dataset \"${bootfs}\" should be set to \"legacy\"." >&2
- exit 1
-fi
mountpoint=`df -t zfs "${bootfs}" 2>/dev/null | tail -1 | awk '{print $6}'`
if [ -z "${mountpoint}" ]; then
echo "The \"${bootfs}\" dataset is not mounted." >&2
@@ -68,19 +63,6 @@ if [ ! -d "${mountpoint}${startdir}" ];
echo "The \"${mountpoint}${startdir}\" directory doesn't exist." >&2
exit 1
fi
-# To be able to mount root ZFS file system we need either /etc/fstab entry
-# or vfs.root.mountfrom variable set in /boot/loader.conf.
-egrep -q '^'"${bootfs}"'[[:space:]]+/[[:space:]]+zfs[[:space:]]+' "${mountpoint}/etc/fstab" 2>/dev/null
-if [ $? -ne 0 ]; then
- egrep -q 'vfs.root.mountfrom="?'"zfs:${bootfs}"'"?[[:space:]]*$' "${mountpoint}/boot/loader.conf" 2>/dev/null
- if [ $? -ne 0 ]; then
- echo "To be able to boot from \"${bootfs}\", you need to declare" >&2
- echo "\"${bootfs}\" as being root file system in ${mountpoint}/etc/fstab" >&2
- echo "or add \"vfs.root.mountfrom\" variable set to \"zfs:${bootfs}\" to" >&2
- echo "${mountpoint}/boot/loader.conf." >&2
- exit 1
- fi
-fi
vdevs=""
for vdev in `zpool status "${pool}" | grep ONLINE | awk '{print $1}'`; do
vdev="/dev/${vdev#/dev/}"
More information about the svn-src-stable-8
mailing list