mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
readd localce_gen function
This commit is contained in:
parent
b33c84eaa3
commit
1d36cb94d4
1 changed files with 10 additions and 0 deletions
|
@ -158,3 +158,13 @@ auto_packages() {
|
|||
PACKAGES="${PACKAGES//\ filesystem\ / }"
|
||||
PACKAGES="filesystem ${PACKAGES}"
|
||||
}
|
||||
|
||||
# /etc/locale.gen
|
||||
# enable at least C.UTF-8 if nothing was changed, else weird things happen on reboot!
|
||||
locale_gen() {
|
||||
if [[ "${DESTDIR}" == "/install" ]]; then
|
||||
systemd-nspawn -q -D "${DESTDIR}" locale-gen >/dev/null 2>&1
|
||||
else
|
||||
locale-gen >/dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue