diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-07-04 12:29:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-21 11:26:50 +0000 |
commit | 7f538f1e2f33dd44c66693442e7713ca16e26d8b (patch) | |
tree | 02a070fe07b1f3b32d0dfc8d42a7da90a8c1f088 /mkinitfs.in | |
parent | 2baa6baf3bbca465f0a5881dedc90e227923a8d2 (diff) | |
download | mkinitfs-7f538f1e2f33dd44c66693442e7713ca16e26d8b.tar.bz2 mkinitfs-7f538f1e2f33dd44c66693442e7713ca16e26d8b.tar.xz |
Add support for signed modloop images
Diffstat (limited to 'mkinitfs.in')
-rwxr-xr-x | mkinitfs.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mkinitfs.in b/mkinitfs.in index 9bffa01..8cd3de3 100755 --- a/mkinitfs.in +++ b/mkinitfs.in @@ -54,6 +54,11 @@ initfs_base() { # copy init cd "$startdir" install -m755 "$init" "$tmpdir"/init || return 1 + # copy modloop signature + if [ -n "$modloop_sig" ]; then + install -Dm644 "$modloop_sig" \ + "$tmpdir"/var/cache/misc/${modloop_sig##*/} + fi for i in "$fstab" "$passwd" "$group"; do install -Dm644 "$i" "$tmpdir"/etc/${i##*/} || return 1 done @@ -181,6 +186,7 @@ options: -o set another outfile -P prepend features.d search path -q Quiet mode + -s Include modloop signature -t use tempdir when creating initramfs image EOF @@ -190,7 +196,7 @@ EOF # main features_dirs=${features_dir:-"${basedir%/:-}/${sysconfdir#/}/features.d"} -while getopts "b:c:C:f:F:hi:kKLlno:P:qt:" opt; do +while getopts "b:c:C:f:F:hi:kKLlno:P:qs:t:" opt; do case "$opt" in b) basedir="$OPTARG";; c) config="$OPTARG";; @@ -207,6 +213,7 @@ while getopts "b:c:C:f:F:hi:kKLlno:P:qt:" opt; do o) outfile="$OPTARG";; P) features_dirs="$OPTARG $features_dirs";; q) quiet=1;; + s) modloop_sig="$OPTARG";; t) tmpdir="$OPTARG";; *) usage;; esac |