small fix

This commit is contained in:
teldra 2021-03-12 23:24:46 +01:00
parent 2a2b98021c
commit 85905b84cb

View File

@ -20,9 +20,9 @@ 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/99-locale-user.sh
sed -i 's/locale.conf/locale-user.conf/' "${dest}"/etc/profile.d/99-locale-user.sh
sed -i '/^if/i [ "$(id -u)" -eq 0 ] && return' "${dest}"/etc/profile.d/99-locale-user.sh
cp -a "${dest}"/etc/profile.d/locale.sh "${dest}"/etc/profile.d/zz-locale-user.sh
sed -i 's/locale.conf/locale-user.conf/' "${dest}"/etc/profile.d/zz-locale-user.sh
sed -i '/^if/i [ "$(id -u)" -eq 0 ] && return' "${dest}"/etc/profile.d/zz-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";