This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Adding DSL to pxeKnife ====== Initially, I will add just menu entry, kernel and initramfs. I plan to modify initramfs later to support http mounting. ===== HTTP mounting ===== This will involve following things. - Add FUSE module to initramfs. - Add httpfs to initramfs. - Add losetup to initramfs. - Do mounting. ===== Useful links ===== - Useful link regarding knoppix [[http://www.knoppix.net/wiki/Knoppix_Remastering_Howto]] - Reference for modifying minirt24 [[http://www.knoppix.net/wiki/Knoppix_Remastering_Howto#For_5.3.1_the_file_system_in_minirt_changed_to_ramfs.]] ===== Following Example ===== Following the example from [[http://httpfs.sourceforge.net/net_boot.htm]], but facing few problems. - httpfs is failing with error <code> fusermount: failed open /dev/fuse : no such file or directory </code> When I did //ls// on ///dev/fuse// I got following output <code> /dev/fuse ?? </code> Note: the //ls// used in this case is from initramfs and hence may not handle extreme cases properly.\\ ==== Solution ==== It seems, I need to create ///dev/fuse// myself. When I did <code> # ls -l /KNOPPIX/dev/fuse crw-rw-rw- 1 root root 10, 229 May 22 2006 /KNOPPIX/dev/fuse </code> and created the node with <code> mknod fuse c 10 229 </code> with this, I am able to mount the remote KNOPPIX. ===== loading KNOPPIX over HTTP ===== if I start DSL and if does not find the KNOPPIX anywhere, then it gives a emergency shell. I have written a following script that can be run from that shell and it will load the KNOPPIX on /cdrom/ <code> #!/static/sh insmod /modules/crc32.o insmod /modules/8390.o insmod /modules/mii.o insmod /modules/ne2k-pci.o insmod /modules/pcnet32.o insmod /modules/r8169.o insmod /modules/sis900.o insmod /modules/via-rhine.o insmod /modules/8139too.o insmod /modules/af_packet.o ifconfig lo 127.0.0.1 up ifconfig eth0 up udhcpc -s /static/udhcpc.sh 1 insmod /modules/fuse.o httpfs http://145.116.233.189/KNOPPIX /cdrom/ </code> This script can be run as follows <code> # /static/loader.sh # ls /cdrom/ KNOPPIX </code> It shows that KNOPPIX is loaded.\\ ===== Mounting the KNOPPIX ===== Now, one of the question is when do I call loader.sh from within linuxrc?\\ Here is the code for [[http://pastebin.com/f265d01b0|linuxrc]]\\ My guess is that I just need to find correct place, and then it should happen automatically.


QR Code
QR Code soc:2009:pravin:journal:pxeknifedsl (generated for current page)