ramdisk rc: start disk drivers synchronously.
This eliminates a race condition between the disk driver calling sys_statectl(SYS_STATE_CLEAR_IPC_REFS) as part of driver_announce(), and the root MFS calling sendrec(DEV_OPEN) on the disk driver.
This commit is contained in:
parent
97eb470bee
commit
71dbe2d023
1 changed files with 3 additions and 3 deletions
|
@ -10,10 +10,10 @@ exec </dev/null
|
|||
if [ X`/bin/sysenv bios_wini` = Xyes ]
|
||||
then
|
||||
echo Using bios_wini.
|
||||
/bin/service -cn up /bin/bios_wini -dev /dev/c0d0
|
||||
/bin/service -c up /bin/bios_wini -dev /dev/c0d0
|
||||
else
|
||||
/bin/service -cn up /bin/at_wini -dev /dev/c0d0 -config /etc/system.conf -label at_wini_0
|
||||
/bin/service -cnr up /bin/at_wini -dev /dev/c1d0 -config /etc/system.conf -label at_wini_1 -args ata_instance=1
|
||||
/bin/service -c up /bin/at_wini -dev /dev/c0d0 -config /etc/system.conf -label at_wini_0
|
||||
/bin/service -cr up /bin/at_wini -dev /dev/c1d0 -config /etc/system.conf -label at_wini_1 -args ata_instance=1
|
||||
fi
|
||||
|
||||
rootdev=`sysenv rootdev` || echo 'No rootdev?'
|
||||
|
|
Loading…
Reference in a new issue