diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-16 20:22:57 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-16 20:34:28 +0200 |
commit | 1a68a5349bb423ddff5ec56ea733631621eba862 (patch) | |
tree | 0078dd45ddd5a0fdc871b147ae93443b5c12814e /defaults/linuxrc | |
parent | gen_initramfs.sh: create_initramfs(): Call set_initramfs_compression_method()... (diff) | |
download | genkernel-1a68a5349bb423ddff5ec56ea733631621eba862.tar.gz genkernel-1a68a5349bb423ddff5ec56ea733631621eba862.tar.bz2 genkernel-1a68a5349bb423ddff5ec56ea733631621eba862.zip |
linuxrc: Add gk.userinteraction.disabled
When this option is set and enabled, genkernel initramfs will not prompt
on errors, i.e. this will disable any user interaction, e.g. for a kiosk system.
Bug: https://bugs.gentoo.org/730966
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/linuxrc')
-rw-r--r-- | defaults/linuxrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index 682f647..5354d09 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -356,6 +356,14 @@ do fi unset tmp_wait ;; + gk.userinteraction.disabled=*) + tmp_disabled=${x#*=} + if is_true "${tmp_disabled}" + then + touch "${GK_USERINTERACTION_DISABLED_STATEFILE}" + fi + unset tmp_disabled + ;; gk.prompt.timeout=*) tmp_timeout=${x#*=} if is_int "${tmp_timeout}" |