grog> I'll think out another way and test more thoroughly.  How does this
grog> look?

g...@itga.com.au already pointed out that "vinum read" command in such
an early stage of /etc/rc causes much much warnings about /dev/ is
read-only filesystem. And, a typo around reading from /etc/vinumslices
(I don't want to type every time :-).

Anyway, I do try with this:

if [ -f /etc/vinumslices ]; then
        read vinum_slices < /etc/vinumslices
        if [ -r /modules/vinum.ko ]; then       # jkh paranoia
                kldload vinum
                vinum read $vinum_slices >/dev/null 2>&1
        else
                echo "Can't find /modules/vinum.ko"
        fi
fi

It works fine, however, sorry I have only ONE volume so how it goes if
two or more volumes are defined (note that 'vinum read' takes only one
argument). If more 'vinum read' commands should be done, the commands
should be within for-loop.

-- -
Makoto `MAR' MATSUSHITA

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to