minimal/src/09_pack_rootfs.sh

15 lines
251 B
Bash
Executable File

#!/bin/sh
cd work
# Remove the old 'initramfs' archive if it exists.
rm -f rootfs.cpio.gz
cd rootfs
# Packs the current 'initramfs' folder structure in 'cpio.gz' archive.
find . | cpio -R root:root -H newc -o | gzip > ../rootfs.cpio.gz
cd ../..