3 # CD boottime initializations.
5 echo -n "Creating ramdisks:"
7 # Set up a ramdisk to make a read-only part of the directory tree writable
8 # $1 : ramdisk dev node to use
9 # $2 : path to make writeable
10 # $3 : ramdisk size in blocks
14 ramdisk
$3 /dev
/$1 > /dev
/null
15 mkfs.mfs
/dev
/$1 > /dev
/null
18 mount
/dev
/$1 /mnt
> /dev
/null
19 (cd $2 && pax
-rw .
/mnt
)
21 umount
/mnt
> /dev
/null
22 mount
/dev
/$1 $2 > /dev
/null
26 create_ramdisk ram0
/var
768
27 create_ramdisk ram1
/tmp
128
28 create_ramdisk ram2
/usr
/run
64
29 create_ramdisk ram3
/root
512