[util-yaml] add set_oem_user

This commit is contained in:
Philip Müller 2022-10-13 18:11:54 +02:00
parent caf60645ce
commit fe9bd56896
2 changed files with 5 additions and 1 deletions

View file

@ -367,7 +367,10 @@ write_settings_conf(){
echo " - initcpio" >> "$conf" && write_initcpio_conf echo " - initcpio" >> "$conf" && write_initcpio_conf
if ${oem_used}; then if ${oem_used}; then
msg2 "Skipping to set users module." msg2 "Skipping to set users module."
if ${set_oem_user}; then
msg2 "Setup OEM user."
echo " - oemuser" >> "$conf" echo " - oemuser" >> "$conf"
fi
else else
echo " - users" >> "$conf" echo " - users" >> "$conf"
fi fi

View file

@ -449,6 +449,7 @@ load_profile_config(){
[[ -z ${mhwd_used} ]] && mhwd_used='true' [[ -z ${mhwd_used} ]] && mhwd_used='true'
[[ -z ${oem_used} ]] && oem_used='false' [[ -z ${oem_used} ]] && oem_used='false'
[[ -z ${set_oem_user ]] && set_oem_user='true'
[[ -z ${chrootcfg} ]] && chrootcfg='false' [[ -z ${chrootcfg} ]] && chrootcfg='false'