diff --git a/sbupdate b/sbupdate index 579a1a2..c061c01 100755 --- a/sbupdate +++ b/sbupdate @@ -51,6 +51,9 @@ function load_config() { [[ -d "${ESP_DIR}" ]] || error "${ESP_DIR} does not exist" [[ -n "${CMDLINE_DEFAULT:+x}" ]] || error "CMDLINE_DEFAULT is not defined or empty" + # Backwards compatibility + [[ "${SPLASH}" == "/dev/null" ]] && SPLASH="" + local key=("${KEY_DIR}"/@(DB|db).key); readonly KEY="${key[0]}" local cert=("${KEY_DIR}"/@(DB|db).crt); readonly CERT="${cert[0]}" @@ -152,7 +155,7 @@ function update_image() { "${initrd_all[@]/#/--initrd=}" \ --cmdline="${cmdline}" \ --os-release=@"/etc/os-release" \ - --splash="${SPLASH}" \ + ${SPLASH:+--splash="${SPLASH}"} \ "${UFLAGS[@]}" \ --output "${output}" diff --git a/sbupdate.conf b/sbupdate.conf index 3ba795c..e068bce 100644 --- a/sbupdate.conf +++ b/sbupdate.conf @@ -7,7 +7,7 @@ # KEY_DIR Directory with the custom Secure Boot keys # ESP_DIR EFI System Partition location # OUT_DIR Relative path on ESP for signed kernel images -# SPLASH Splash image file. Use "/dev/null" to disable splash. +# SPLASH Splash image file. Use an empty string to disable splash. # BACKUP Whether to back up old signed kernel images # EXTRA_SIGN An array of additional files to sign # CMDLINE_DEFAULT Default kernel command line. Read from /etc/kernel/cmdline