From: kokkiemouse Date: Mon, 21 Sep 2020 04:46:03 +0000 (+0900) Subject: fixed lang? X-Git-Tag: 2020-11-20-a~139 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=32ba7fffe93a09d8d0a8c30838478c273706daa9;p=alterlinux%2FLFBS.git fixed lang? Signed-off-by: kokkiemouse --- 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