Commit feba4d40 authored by Mike Hibler's avatar Mike Hibler

Don't complain about "updating UFS1 FS" in the 99% of cases where we are not.

parent a5386a06
......@@ -513,6 +513,18 @@ fixone() {
export SLICEFIX_DOM0MEM=`getvar DOM0MEM "$iline" unknown`
export SLICEFIX_DISABLEIF=`getvar DISABLEIF "$iline" unknown`
#
# XXX stop complaining about potential UFS1 problems
# unless we are loading old FBSD4xx image.
#
_os=`getvar PARTOS "$iline" unknown`;
_osv=`getvar OSVERSION "$iline" 0`;
case "$_os/$_osv" in
FreeBSD/4.*)
export SLICEFIX_OLDFBSD=1
;;
esac
$BINDIR/slicefix $PART $DISK
return $?
}
......
......@@ -59,6 +59,8 @@ esac
# Handle pseudo arguments in the environment.
#
OLDBSD=${SLICEFIX_OLDBSD:-''}
#
# Explicitly enable/disable ACPI (BSD only)
#
......@@ -829,7 +831,7 @@ EOF1
umount $rootdev
# XXX need to fixup FS, see big comment above
if [ "x$vers" != "x4" ]; then
if [ "x$vers" != "x4" -a -n "$OLDBSD" ]; then
echo "WARNING: FBSD${vers} may have modified the UFS1 root FS"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment