custom output name and compression program
This commit is contained in:
parent
5cd50d3b0d
commit
2392ff0752
6
config
6
config
@ -5,9 +5,15 @@
|
||||
# debug mode
|
||||
#debug=1
|
||||
|
||||
# custom output name
|
||||
#initramfs=""
|
||||
|
||||
# custom kernel version
|
||||
#kernel=""
|
||||
|
||||
# custom compression program
|
||||
#compress=""
|
||||
|
||||
# parse fstab
|
||||
#use_fstab=0
|
||||
|
||||
|
6
generate
6
generate
@ -390,9 +390,9 @@ create_initramfs() {
|
||||
cd "$tmpdir"
|
||||
find . \
|
||||
| cpio -oH newc \
|
||||
| gzip -9
|
||||
| ${compress:-gzip -9}
|
||||
) \
|
||||
| tee "${script_dir}/initramfs-${kernel}.img.gz"
|
||||
| tee "${script_dir}/${initramfs:-initramfs-${kernel}}"
|
||||
} > /dev/null 2>&1 || msg panic "failed to generate initramfs image"
|
||||
}
|
||||
|
||||
@ -450,4 +450,4 @@ esac
|
||||
install_files
|
||||
create_initramfs
|
||||
|
||||
msg info "done! check out initramfs-${kernel}.img.gz"
|
||||
msg info "done! check out ${initramfs:-initramfs-${kernel}}"
|
||||
|
Loading…
Reference in New Issue
Block a user