Set $LOCALE_ARCHIVE in systemd services

Systemd sets locale variables like $LANG when running services, so
$LOCALE_ARCHIVE should also be set to prevent warnings like "perl:
warning: Setting locale failed.".
This commit is contained in:
Eelco Dolstra 2012-09-18 18:12:39 -04:00
parent b96835f8dd
commit 83c6b1cf3a

View file

@ -179,4 +179,5 @@ fi
echo "starting systemd..."
PATH=/run/current-system/systemd/lib/systemd \
MODULE_DIR=/run/booted-system/kernel-modules/lib/modules \
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \
exec systemd --log-target=journal # --log-level=debug --log-target=console --crash-shell