Re: setting up crypto softraid

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniele Pilenga
Date: Thursday, July 29, 2010 - 11:34 pm

Hi,

On Fri, Jul 30, 2010 at 7:28 AM, Jan Stary <hans@stare.cz> wrote:

Without touching rc, I use this tiny bits in rc.securelevel:

for TRY in 1 2 3; do
        bioctl -c C -l /dev/sd0m softraid0
        if [ $? -eq 0 ]; then
                DRIVE=$( expr "$(sysctl -n
hw.sensors.softraid0.drive0)" : 'online (\(sd[0-9]\)), OK' )
                fsck -p /dev/${DRIVE}d \
                && mount -o softdep /dev/${DRIVE}d /home
                break
        fi
done

Ciao,
D.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
setting up crypto softraid, Jan Stary, (Thu Jul 29, 4:38 am)
Re: setting up crypto softraid, Jiri B., (Thu Jul 29, 1:04 pm)
Re: setting up crypto softraid, Tomas Vavrys, (Thu Jul 29, 2:03 pm)
Re: setting up crypto softraid, Jona Joachim, (Thu Jul 29, 4:23 pm)
Re: setting up crypto softraid, Jan Stary, (Thu Jul 29, 10:28 pm)
Re: setting up crypto softraid, Daniele Pilenga, (Thu Jul 29, 11:34 pm)