mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 13:06:59 +02:00
enter_chroot: set reasonable PATH when calling locale-gen
This commit is contained in:
parent
a075b1085a
commit
946f730d7f
@ -191,7 +191,8 @@ generate_locales() {
|
||||
# with long multibyte strings. Newer setups have this fixed,
|
||||
# but locale-gen doesn't need to be run in any locale in the
|
||||
# first place, so just go with C to keep it fast.
|
||||
chroot "${FLAGS_chroot}" env LC_ALL=C locale-gen -q -u \
|
||||
PATH="/usr/sbin:/usr/bin:/sbin:/bin" LC_ALL=C \
|
||||
chroot "${FLAGS_chroot}" locale-gen -q -u \
|
||||
-G "$(printf '%s\n' "${gen_locales[@]}")"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user