Fix harmless gpart(8) rant about ugen(4) devices.
This commit is contained in:
parent
4277af47de
commit
048d1e57bf
|
|
@ -434,7 +434,7 @@ case ${2} in
|
||||||
if [ "${IGNORE_SYS_PARTS}" = 'YES' ]
|
if [ "${IGNORE_SYS_PARTS}" = 'YES' ]
|
||||||
then
|
then
|
||||||
SYS_DEV=$( echo ${1} | grep -E -o '^[a-z]+[0-9]+' )
|
SYS_DEV=$( echo ${1} | grep -E -o '^[a-z]+[0-9]+' )
|
||||||
SYS_GPART=$( gpart show -p -r ${SYS_DEV} | sed 's@=>@@g' | grep " ${1} " | awk '{print $4}' )
|
SYS_GPART=$( gpart show -p -r ${SYS_DEV} 2> /dev/null | sed 's@=>@@g' | grep " ${1} " | awk '{print $4}' )
|
||||||
case ${SYS_GPART} in
|
case ${SYS_GPART} in
|
||||||
(c12a7328-f81f-11d2-ba4b-00a0c93ec93b) exit 0 ;;
|
(c12a7328-f81f-11d2-ba4b-00a0c93ec93b) exit 0 ;;
|
||||||
(e3c9e316-0b5c-4db8-817d-f92df00215ae) exit 0 ;;
|
(e3c9e316-0b5c-4db8-817d-f92df00215ae) exit 0 ;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue