OSDN Git Service

fixed lang?
authorkokkiemouse <kokkiemouse@gmail.com>
Mon, 21 Sep 2020 04:46:03 +0000 (13:46 +0900)
committerkokkiemouse <kokkiemouse@gmail.com>
Mon, 21 Sep 2020 04:46:03 +0000 (13:46 +0900)
Signed-off-by: kokkiemouse <kokkiemouse@gmail.com>
channels/share/airootfs/etc/systemd/system/locale-init.service
channels/share/airootfs/root/customize_airootfs.sh

index 0f7fbc9..25699c0 100644 (file)
@@ -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
index 85e5f55..f67a07f 100755 (executable)
@@ -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