mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 08:31:04 +02:00
Merge pull request #291 from marineam/path
make_chroot: explicitly set path when entering the chroot.
This commit is contained in:
commit
1c0de92363
@ -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
|
||||
}
|
||||
|
@ -92,6 +92,7 @@ early_enter_chroot() {
|
||||
# the overhead of enter_chroot, and do not need access to the source tree,
|
||||
# don't need the actual chroot profile env, and can run the command as root.
|
||||
bare_chroot() {
|
||||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
|
||||
chroot "${FLAGS_chroot}" "$@"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user