Add a -c file option to the vkernel to specify CD images. The first -c or -r
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 25 May 2007 02:21:19 +0000 (02:21 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 25 May 2007 02:21:19 +0000 (02:21 +0000)
commita72d8a9fc942adb9fcd8a253b05cebb83ee4bda1
treebf4524c6db09edb4e0094ce5bfe2c1ac2a2bc1a7
parentfac2512246bab2e63649e94afefabdb1c8256ca0
Add a -c file option to the vkernel to specify CD images.  The first -c or -r
option will be the boot device.

Add a new virtual CDRom device, vcd.  Basically its works the same as VKD
but we open the device in read-only mode and use a block size of 2048 instead
of 512.

Install the console as a real device and change the console major to be
the same as the syscons major so a default init is able to start up a getty.
etc/MAKEDEV
share/man/man7/vkernel.7
sys/config/VKERNEL
sys/dev/virtual/Makefile
sys/dev/virtual/cdrom/Makefile [new file with mode: 0644]
sys/dev/virtual/cdrom/vcd.c [copied from sys/dev/virtual/disk/vdisk.c with 81% similarity]
sys/dev/virtual/disk/vdisk.c
sys/platform/vkernel/conf/files
sys/platform/vkernel/include/md_var.h
sys/platform/vkernel/platform/console.c
sys/platform/vkernel/platform/init.c