From 875c8c1c5bc4ceca674fa9e9f97e422fb966b74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Thu, 16 May 2024 10:21:58 +0200 Subject: [PATCH] Emulate "localectl list-locales" in Live ISO build Unfortunately localectl insists on running systemd as PID 1 so it cannot be used here :-/ --- live/src/config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live/src/config.sh b/live/src/config.sh index a296854adb..a5ebd6d682 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -68,7 +68,9 @@ du -h -s /usr/{share,lib}/locale/ # Agama then reads this file instead of running the "localectl list-locales" # command. mkdir -p /etc/agama.d -localectl list-locales > /etc/agama.d/locales +# emulate "localectl list-locales" call, it cannot be used here because it +# insists on running systemd as PID 1 :-/ +ls -1 -d /usr/lib/locale/*.utf8 | sed -e "s#/usr/lib/locale/##" -e "s#utf8#UTF-8#" > /etc/agama.d/locales # delete translations and unusupported languages (makes ISO about 22MiB smaller) # build list of ignore options for "ls" with supported languages like "-I cs* -I de* -I es* ..."