Created
January 27, 2021 12:29
-
-
Save robvanoostenrijk/e7510caba36b47ffab190929cd5ba41b to your computer and use it in GitHub Desktop.
Re-compress Ubuntu Live /casper/initrd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch initrd.new | |
cd early | |
find . -print0 | cpio --null --create --format=newc > ../initrd.new | |
cd ../early | |
find . -print0 | cpio --null --create --format=newc >> ../initrd.new | |
cd ../main | |
find . | cpio --create -format=newc | xz --format=lzma >> ../initrd.new | |
#find . | cpio --create -format=newc | lz4 -9 -l -c >> ../initrd.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment