patch_initrd.sh~ 242 Bytes
Newer Older
Daniel Schulte's avatar
Daniel Schulte committed
1
2
3
4
5
6
7
8
#!/bin/bash
mkdir initrd_edit
cd initrd_edit
lzma -dc -S .lz ../initrd.lz | cpio -imvd --no-absolute-filenames
mv ../initrd.lz ../initrd.lz.org
patch adduser.patch
find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../initrd.lz
cd ..