diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-12-23 18:19:22 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-01-15 14:24:45 +0000 |
commit | 3ec878636b48c50f5d6e74ae03b23be080da2169 (patch) | |
tree | 678a54999a2ec20ae6b67116cc634a8405a575a1 /projects | |
parent | 1061b2c0d2eeda8549c2f4afcf709316c1d8243e (diff) | |
download | librebootfr-3ec878636b48c50f5d6e74ae03b23be080da2169.tar.gz librebootfr-3ec878636b48c50f5d6e74ae03b23be080da2169.zip |
cros-scripts: cros-kernel-prepare update with more definitions
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'projects')
-rwxr-xr-x | projects/cros-scripts/install/cros-kernel-prepare | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/projects/cros-scripts/install/cros-kernel-prepare b/projects/cros-scripts/install/cros-kernel-prepare index 9a50b0df..00f90234 100755 --- a/projects/cros-scripts/install/cros-kernel-prepare +++ b/projects/cros-scripts/install/cros-kernel-prepare @@ -15,6 +15,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +KEYBLOCK="keyblock" +VBPRIVK="vbprivk" +VBPUBK="vbpubk" ARCH="arch" CMDLINE="cmdline" BOOTLOADER="bootloader" @@ -53,7 +56,7 @@ pack() { local kernel_image_path="$kernel_files_path/$KERNEL_IMAGE" mkimage -f "$kernel_its_path" "$kernel_fit_path" - futility vbutil_kernel --pack "$kernel_image_path" --version 1 --arch "$arch" --keyblock "$VBOOT_KEYS_PATH/kernel.keyblock" --signprivate "$VBOOT_KEYS_PATH/kernel_data_key.vbprivk" --config "$cmdline_path" --vmlinuz "$kernel_fit_path" --bootloader "$bootloader_path" + futility vbutil_kernel --pack "$kernel_image_path" --version 1 --arch "$arch" --keyblock "$VBOOT_KEYS_PATH/kernel.$KEYBLOCK" --signprivate "$VBOOT_KEYS_PATH/kernel_data_key.$VBPRIVK" --config "$cmdline_path" --vmlinuz "$kernel_fit_path" --bootloader "$bootloader_path" printf "\nPacked kernel image $kernel_image_path\n" } @@ -61,7 +64,7 @@ pack() { sign() { local kernel_image_path=$1 - futility vbutil_kernel --repack "$kernel_image_path" --version 1 --keyblock "$VBOOT_KEYS_PATH/kernel.keyblock" --signprivate "$VBOOT_KEYS_PATH/kernel_data_key.vbprivk" --oldblob "$kernel_image_path" + futility vbutil_kernel --repack "$kernel_image_path" --version 1 --keyblock "$VBOOT_KEYS_PATH/kernel.$KEYBLOCK" --signprivate "$VBOOT_KEYS_PATH/kernel_data_key.$VBPRIVK" --oldblob "$kernel_image_path" printf "\nSigned kernel image $kernel_image_path\n" } @@ -69,7 +72,7 @@ sign() { verify() { local kernel_image_path=$1 - futility vbutil_kernel --verify "$kernel_image_path" --signpubkey "$VBOOT_KEYS_PATH/kernel_subkey.vbpubk" + futility vbutil_kernel --verify "$kernel_image_path" --signpubkey "$VBOOT_KEYS_PATH/kernel_subkey.$VBPUBK" printf "\nVerified kernel image $kernel_image_path\n" } |