aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-xgen_determineargs.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index ed9b1bcb..448e5076 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -388,6 +388,7 @@ determine_real_args() {
set_config_with_override STRING MODPROBEDIR CMD_MODPROBEDIR "/etc/modprobe.d"
set_config_with_override BOOL SPLASH CMD_SPLASH "no"
+ set_config_with_override BOOL PLYMOUTH CMD_PLYMOUTH "no"
set_config_with_override BOOL CLEAR_CACHEDIR CMD_CLEAR_CACHEDIR "no"
set_config_with_override BOOL POSTCLEAR CMD_POSTCLEAR "no"
set_config_with_override BOOL MRPROPER CMD_MRPROPER "yes"
@@ -1021,6 +1022,21 @@ determine_real_args() {
fi
fi
+ if isTrue "${PLYMOUTH}" && isTrue "${SPLASH}"
+ then
+ gen_die "--plymouth and --splash are mutually exclusive!"
+ fi
+
+ if isTrue "${PLYMOUTH}" && ! isTrue "${FIRMWARE}"
+ then
+ gen_die "--plymouth requires --firmware but --no-firmware is set!"
+ fi
+
+ if isTrue "${PLYMOUTH}" && ! isTrue "${ALLRAMDISKMODULES}"
+ then
+ gen_die "--plymouth requires --all-ramdisk-modules but --no-all-ramdisk-modules is set!"
+ fi
+
if isTrue "${SSH}"
then
local ssh_authorized_keys_file=$(expand_file "${SSH_AUTHORIZED_KEYS_FILE}")