OpenSolaris

Printable Version Enter a New Search
Bug ID 6791701
Synopsis SUWNstmf postinstall script is broken
State 10-Fix Delivered (Fix available in build)
Category:Subcategory storage_sw:stmf
Keywords
Responsible Engineer Tim Szeto
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_107
Fixed In snv_107
Release Fixed solaris_nevada(snv_107)
Related Bugs 6790698
Submit Date 8-January-2009
Last Update Date 28-January-2009
Description
The postinstall script for SUNWstmf has the following:

driver_not_installed()
{
        grep $1 /etc/name_to_major >/dev/null 2>&1
        if [ $? -eq 0 ]
        then
                return 1
        else
                return 0
        fi
}

This is busted for installation environments, and needs to be
"$BASEDIR/etc/name_to_major".
Work Around
N/A
Comments
There's also no need for the extra BASEDIR check in 
driver_add() - "add_drv -b /" is the same as "add_drv".