diff options
-rwxr-xr-x | meta-signing-key/scripts/create-user-key-store.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-signing-key/scripts/create-user-key-store.sh b/meta-signing-key/scripts/create-user-key-store.sh index 0d55d2a..0b4b9fa 100755 --- a/meta-signing-key/scripts/create-user-key-store.sh +++ b/meta-signing-key/scripts/create-user-key-store.sh | |||
@@ -304,7 +304,11 @@ create_ima_user_key() { | |||
304 | create_boot_pw_key() { | 304 | create_boot_pw_key() { |
305 | local bootprog=`which grub-mkpasswd-pbkdf2` | 305 | local bootprog=`which grub-mkpasswd-pbkdf2` |
306 | if [ "$bootprog" = "" ] ; then | 306 | if [ "$bootprog" = "" ] ; then |
307 | print_fatal "ERROR could not locate \"grub-mkpasswd-pbkdf2\" please install it or set the path to the host native sysroot" | 307 | # Locate grub2-mkpasswd-pbkdf2 on RHEL/CentOS/Fedora |
308 | bootprog=`which grub2-mkpasswd-pbkdf2` | ||
309 | if [ "$bootprog" = "" ] ; then | ||
310 | print_fatal "ERROR could not locate \"grub-mkpasswd-pbkdf2\" or \"grub2-mkpasswd-pbkdf2\" please install it or set the path to the host native sysroot" | ||
311 | fi | ||
308 | fi | 312 | fi |
309 | (echo "$BOOT_PASS"; echo "$BOOT_PASS") | $bootprog > $BOOT_KEYS_DIR/boot_cfg_pw.tmp | 313 | (echo "$BOOT_PASS"; echo "$BOOT_PASS") | $bootprog > $BOOT_KEYS_DIR/boot_cfg_pw.tmp |
310 | if [ $? != 0 ] ; then | 314 | if [ $? != 0 ] ; then |