| | 5 | |
| | 6 | = initrd.lz = |
| | 7 | * [https://forums.ubuntulinux.jp/viewtopic.php?id=6874 Ubuntu日本語フォーラム / Ubuntu9.10 UCKでinitrdの編集] |
| | 8 | * [https://help.ubuntu.com/community/LiveCDCustomization LiveCDCustomization - Community Ubuntu Documentation] |
| | 9 | > Also, I have read a few articles mentioning that Karmic (9.10) uses initrd.lz instead of initrd.gz. I do not know if this is true, but should mention it in case you are not getting the expected results. To unpack the initrd.lz file, you need to do this: |
| | 10 | > {{{ |
| | 11 | > # cd extract-cd/casper |
| | 12 | > # mkdir lztempdir |
| | 13 | > # cd lztempdir |
| | 14 | > # lzma -dc -S .lz ../initrd.lz | cpio -imvd --no-absolute-filenames |
| | 15 | > }}} |
| | 16 | > And to re-create the initrd.lz file: |
| | 17 | > {{{ |
| | 18 | > # cp ../initrd.lz ../inird.lz.orig |
| | 19 | > # find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../initrd.lz |
| | 20 | > }}} |