small fix in profile.d: locale

This commit is contained in:
teldra 2021-03-12 20:24:09 +01:00
parent 2c087620af
commit 2c778c5e61
1 changed files with 2 additions and 0 deletions

View File

@ -19,8 +19,10 @@ echo "LANG=en_US.UTF-8" > "${dest}"/etc/locale.conf
echo "KEYMAP=${cfg[lang_console]}" > "${dest}"/etc/vconsole.conf
echo "${cfg[lang]}.UTF-8 UTF-8" >> "${dest}"/etc/default/libc-locales
echo "LANG=${cfg[lang]}.UTF-8" > "${dest}"/etc/locale-user.conf
cp -a "${dest}"/etc/profile.d/locale.sh "${dest}"/etc/profile.d/locale-user.sh
sed -i 's/locale.conf/locale-user.conf/' "${dest}"/etc/profile.d/locale-user.sh
sed '/^if/i [[ "$(id -u)" -eq 0 ]] && return' "${dest}"/etc/profile.d/locale-user.sh
{ echo "tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0";
echo "/dev/mapper/voidvg.${diskid}-root / btrfs defaults,subvol=void-rootfs 0 0";