From fe9bd56896e2a89b437cc539b7bfe7c693f70cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Thu, 13 Oct 2022 18:11:54 +0200 Subject: [PATCH] [util-yaml] add set_oem_user --- lib/util-yaml.sh | 5 ++++- lib/util.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/util-yaml.sh b/lib/util-yaml.sh index dee740e..7c1e3c2 100644 --- a/lib/util-yaml.sh +++ b/lib/util-yaml.sh @@ -367,7 +367,10 @@ write_settings_conf(){ echo " - initcpio" >> "$conf" && write_initcpio_conf if ${oem_used}; then msg2 "Skipping to set users module." - echo " - oemuser" >> "$conf" + if ${set_oem_user}; then + msg2 "Setup OEM user." + echo " - oemuser" >> "$conf" + fi else echo " - users" >> "$conf" fi diff --git a/lib/util.sh b/lib/util.sh index 61fc5c7..4f82153 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -449,6 +449,7 @@ load_profile_config(){ [[ -z ${mhwd_used} ]] && mhwd_used='true' [[ -z ${oem_used} ]] && oem_used='false' + [[ -z ${set_oem_user ]] && set_oem_user='true' [[ -z ${chrootcfg} ]] && chrootcfg='false'