From 90b48365199bb9ac7353170c42298aa756089cd1 Mon Sep 17 00:00:00 2001 From: mav Date: Mon, 28 Mar 2016 09:34:14 +0000 Subject: MFC r296654: Use `geom disk list` instead `camcontrol identify`. The new way works for almost any disk, while the old only for ATA. --- usr.sbin/pc-sysinstall/backend-query/disk-list.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pc-sysinstall/backend-query/disk-list.sh') diff --git a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh index 2616ef9..875b330 100755 --- a/usr.sbin/pc-sysinstall/backend-query/disk-list.sh +++ b/usr.sbin/pc-sysinstall/backend-query/disk-list.sh @@ -82,8 +82,8 @@ do esac fi - # Try and find some identification information with camcontrol - NEWLINE=$(camcontrol identify $DEV 2>/dev/null | sed -ne 's/^device model *//p') + # Try and get some identification information from GEOM + NEWLINE=$(geom disk list $DEV 2>/dev/null | sed -ne 's/^ descr: *//p') if [ -z "$NEWLINE" ]; then NEWLINE=" " fi -- cgit v1.1