This is an old revision of the document!
====== Supporting Ubuntu 9.10 in BKO ====== This page will document progress and problems faced in supporting Ubuntu 9.10 in BKO. ===== Steps in adding Ubuntu 9.10 in BKO ===== - Get the 9.10 ISO. - done - Extract the linux kernel image, initrd image. - done (location [[http://git.etherboot.org/?p=people/pravin/BKO.git;a=tree;f=bko/live/ubuntu/U9.10|bko/live/ubuntu/U9.10/]]) - Get kernel modules needed for iscsi support from iso. - Modify initrd image ( to be done by [[http://git.etherboot.org/?p=people/pravin/BKO.git;a=history;f=bko/live/ubuntu/U9.10/generate_initrd.sh|generate_initrd.sh]] script ) - adding tools needed to support httpfs and iscsi mounting - Done - add kernel modules for iscsi support to initrd. - Done - edit the "scripts/casper" inside initrd image. - Done - Turn on the networking. - configure the network to use boot parameters for ''IP'' or use ''dhcp'' - to use above tools and mount the ISO image over Internet. - Modify code such that mounted ISO will be used for booting instead real cdrom. - Compress back the initrd image. __Problems in doing this__ - Used unmodified linux kernel image and modified initrd image to boot the system. - Most probably something will go wrong and it will not work, debug those problems. ====== Current Status ====== Ubuntu is booting over network using pxe, but its not able to mount the iso and use it. ===== Problem-1 : new format for initrd ===== Ubuntu 9.10 is using new format for compressing initrd files. It uses ''lzma'' command for this. This is quite new format for me, so struggling little bit with it. For decompressing the ''initrd.lz'', use following steps. <code> mv initrd.lz initrd.lzma unlzma initrd.lzma </code> I still have some problems in compressing it back. The default ''lzma'' compression does not match the original ''initrd.lz'' file, so I am doing something wrong here. Most probably, I need to provide proper compression level which I need to find out. <code>(cd mpoint;find . | cpio -oH newc | lzma -c > ../initrd.lzma)</code> === Soln === I have to provide ''-9'' argument to lzma for work. So final command which worked in ''generate_initrd.sh'' is <code>sudo find . | sudo cpio -oH newc | lzma -9 -c> ../initrd.lz</code> ===== Problem-2 : getting command shell inside initramfs ===== Ubuntu does not give command shell when I add ''/bin/sh'' into the ''casper''. What I need to do?