1 2 3 4 5 6 7 8
#!/bin/bash cd init make build copy cd .. cd root find . | cpio -o -H newc | gzip > ../initramfs.cpio.gz