From 32ba7fffe93a09d8d0a8c30838478c273706daa9 Mon Sep 17 00:00:00 2001 From: kokkiemouse Date: Mon, 21 Sep 2020 13:46:03 +0900 Subject: [PATCH] fixed lang? Signed-off-by: kokkiemouse --- channels/share/airootfs/etc/systemd/system/locale-init.service | 9 +++++++++ channels/share/airootfs/root/customize_airootfs.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/channels/share/airootfs/etc/systemd/system/locale-init.service b/channels/share/airootfs/etc/systemd/system/locale-init.service index 0f7fbc9..25699c0 100644 --- a/channels/share/airootfs/etc/systemd/system/locale-init.service +++ b/channels/share/airootfs/etc/systemd/system/locale-init.service @@ -1,3 +1,12 @@ +[Unit] +Description=set locale +After=getty.target + +[Service] +Type=oneshot ExecStart=/bin/bash -c "localectl set-locale LANG=%LC_GEN% \ && /usr/bin/systemctl disable locale-init.service \ && rm -f /etc/systemd/system/locale-init.service" + +[Install] +WantedBy=multi-user.target diff --git a/channels/share/airootfs/root/customize_airootfs.sh b/channels/share/airootfs/root/customize_airootfs.sh index 85e5f55..f67a07f 100755 --- a/channels/share/airootfs/root/customize_airootfs.sh +++ b/channels/share/airootfs/root/customize_airootfs.sh @@ -37,7 +37,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do d) debug=true ;; x) debug=true; set -xv ;; a) arch="${OPTARG}" ;; - g) localegen="${OPTARG/./\\.}\\" ;; + g) localegen="${OPTARG}" ;; z) timezone="${OPTARG}" ;; l) language="${OPTARG}" ;; esac -- 2.11.0