123456789101112131415161718192021 |
- #!/bin/sh
- rm initrd.gz 2>/dev/null
- sync
- cd initrd-tree
- if [ "$1" = "lzma" ];then
- find . | ../cpio -o -H newc > ../initrd
- sync
- cd ..
- lzma e ./initrd ./initrd.gz
- sync
- rm -f ./initrd
- else
- #gzip...
- find . | ../cpio -o -H newc | gzip -9 > ../initrd.gz
- sync
- cd ..
- fi
|