diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-02-24 13:21:47 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-04-11 12:54:58 +0000 |
commit | 75354120026f38f599c1eb5c656bce282e0d8aae (patch) | |
tree | e582275fb508e9b5735ae75b61e8c6e1471a011e | |
parent | b1febd985fe1b5cd183b19ee5e491fceda0e0a9a (diff) | |
download | alpine-conf-75354120026f38f599c1eb5c656bce282e0d8aae.zip |
update-kernel: add initramfs compression support
-rw-r--r-- | update-kernel.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/update-kernel.in b/update-kernel.in index 88f266b..dc78782 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -50,8 +50,9 @@ usage() { -F|--feature <feature> Enable initfs feature -p|--package <package> Additional module or firmware package -v|--verbose Verbose output - -k|--apk-pubkey <key> Include given key in initramfs + -k|--apk-pubkey <key> Include given key in initramfs -K|--hostkeys Include host keys in initramfs + -C|--compression Initramfs compression (see mkinitfs for options) -M|--media Boot media directory layout --repositories-file <f> apk repositories file @@ -60,8 +61,8 @@ usage() { } QUIET_OPT="--quiet" -OPTS=$(getopt -l arch:,build-dir:,flavor:,feature:,help,package:,verbose,apk-pubkey:,hostkeys,media,repositories-file: \ - -n $SCRIPT -o a:b:f:F:hp:vk:KM -- "$@") || usage 1 +OPTS=$(getopt -l arch:,build-dir:,flavor:,feature:,help,package:,verbose,apk-pubkey:,hostkeys,compression:,media,repositories-file: \ + -n $SCRIPT -o a:b:f:F:hp:vk:KC:M -- "$@") || usage 1 eval set -- "$OPTS" while :; do @@ -100,6 +101,10 @@ while :; do -K|--hostkeys) MKINITFS_ARGS="$MKINITFS_ARGS -K" ;; + -C|--compression) + shift + MKINITFS_ARGS="$MKINITFS_ARGS -C $1" + ;; -M|--media) MEDIA=yes ;; |