remove LANG=C from common.sh, restore old LANG=C values

This commit is contained in:
Tobias Powalowski 2023-08-28 20:09:31 +02:00
parent 76a9dfbfe4
commit e5a0ce3a07
3 changed files with 5 additions and 6 deletions

View file

@ -87,8 +87,8 @@ build_image() {
# If this pipeline changes, |pipeprogs| below needs to be updated as well.
find . -mindepth 1 -printf '%P\0' |
sort -z |
bsdtar --null -cnf - -T - |
bsdtar --null -cf - --format=newc @- |
LANG=C bsdtar --null -cnf - -T - |
LANG=C bsdtar --null -cf - --format=newc @- |
$compress "${COMPRESSION_OPTIONS[@]}" > "$compressout"
pipestatus=("${PIPESTATUS[@]}")
pipeprogs=('find' 'sort' 'bsdtar (step 1)' 'bsdtar (step 2)' "$compress")

View file

@ -1,7 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
# created by Tobias Powalowski <tpowa@archlinux.org>
LANG=C
. /etc/archboot/defaults
_BASENAME=${0##*/}
_RUNNING_ARCH="$(uname -m)"
@ -208,7 +207,7 @@ _fix_network() {
_create_archboot_db() {
echo "Creating archboot repository db..."
#shellcheck disable=SC2046
repo-add -q "${1}"/archboot.db.tar.gz $(find "${1}"/ -type f ! -name '*.sig')
LANG=C repo-add -q "${1}"/archboot.db.tar.gz $(find "${1}"/ -type f ! -name '*.sig')
}
_pacman_parameters() {

View file

@ -118,8 +118,8 @@ _create_initramfs() {
cd "${_ROOTFS_DIR}" || exit 1
find . -mindepth 1 -printf '%P\0' |
sort -z |
bsdtar --null -cnf - -T - |
bsdtar --null -cf - --format=newc @- |
LANG=C bsdtar --null -cnf - -T - |
LANG=C bsdtar --null -cf - --format=newc @- |
zstd --rm -T0> "${_RAM}/${_INITRD}" &
sleep 2
while pgrep -x zstd &>"${_NO_LOG}"; do