|
| InitRD and RootFS Config Requirements |
|
| RamDisk, Loop and initrd Devices |
- initrd devices
mknod [ -m 400 ] /dev/initrd b 1 250
chmod 640 /dev/initrd
chown root:disk /dev/initrd
- ramdisk devices
mknod /dev/ram0 b 1 0
mknod /dev/ram1 b 1 1
mknod /dev/ram2 b 1 2
...
chmod 660 /dev/ram*
chown root:disk /dev/ram*
- Loopback devices
mknod /dev/loop0 b 7 0
mknod /dev/loop1 b 7 1
mknod /dev/loop2 b 7 2
...
chmod 660 /dev/loop*
chown root:disk /dev/loop*
|
| Kernel Options Needed to Build/Read initrd.gz files |
- /usr/src/linux-2.4.x/.config
#
# use a loop device for any sized initrd file as needed ..
- CONFIG_BLK_DEV_LOOP=m
- CONFIG_BLK_DEV_RAM=y must be built into the kernel
#
# use a larger ramdisk as needed: 4096, 8192, 16384 ..
- CONFIG_BLK_DEV_RAM_SIZE=8192
- CONFIG_MINIX_FS=m
- CONFIG_CRAMFS=m ( needed used to read debian:/boot/initrd.gz )
|