fi
+# Calamares configs
+
# If the specified kernel is different from calamares configuration, replace the configuration file.
if [[ ! ${kernel} = "zen" ]]; then
# initcpio
remove /usr/share/calamares/modules/unpackfs.conf
mv /usr/share/calamares/modules/unpackfs/unpackfs-${kernel}.conf /usr/share/calamares/modules/unpackfs.conf
fi
+
# Remove configuration files for other kernels.
remove /usr/share/calamares/modules/initcpio/
remove /usr/share/calamares/modules/unpackfs/
+
# Set up calamares removeuser
sed -i s/%USERNAME%/${username}/g /usr/share/calamares/modules/removeuser.conf
+
+# Set user shell
+sed -i s|%USERSHELL%|"${usershell}"|g /usr/share/calamares/modules/users.conf
+
# Set INSTALL_DIR
sed -i s/%INSTALL_DIR%/"${install_dir}"/g /usr/share/calamares/modules/unpackfs.conf
# and rely on a correct configuration file in /etc/default/useradd
# - set, non-empty, use that path as shell. No validation is done
# that the shell actually exists or is executable.
-userShell: /bin/zsh
+userShell: %USERSHELL%
# Hostname setting
#
# - *EtcFile*, to write to `/etc/hostname` directly
# - *Hostnamed*, to use systemd hostnamed(1) over DBus
# The default is *EtcFile*.
-setHostname: EtcFile
+setHostname: Hostnamed
# Should /etc/hosts be written with a hostname for this machine
# (also adds localhost and some ipv6 standard entries).