Changeset 98ca661


Ignore:
Timestamp:
09/26/13 01:16:05 (15 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
bee06b9, e747491
Parents:
cec4c86b
Message:

Update 10_ktrueos to detect BEADM setup zpools without ROOT
as the bed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/grub.d/10_ktrueos

    r3f810665 r98ca661  
    2828# entries for them 
    2929 
     30ROOTFS=`mount | awk '/ \/ / {print $1}'` 
     31BEDS="$( echo ${ROOTFS} | awk -F '/' '{print $2}' )" 
     32 
    3033display_loaderopts() 
    3134{ 
     
    155158   do 
    156159      # Got a beadm snapshot, lets get the complete dataset name 
    157       beLine=`${BEADM} list -a | grep "/ROOT/${b}"` 
     160      beLine=`${BEADM} list -a | grep "/$BEDS/${b}"` 
    158161      cdataset=`echo $beLine | awk '{print $1}'` 
    159162      cdatadate=`echo $beLine | awk '{print $5}'` 
Note: See TracChangeset for help on using the changeset viewer.