OSDN Git Service

[update] : Added -l in customize_airootfs.
authorhayao <shun819.mail@gmail.com>
Sat, 27 Jun 2020 13:25:44 +0000 (22:25 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 27 Jun 2020 13:25:44 +0000 (22:25 +0900)
build.sh
channels/lxde/airootfs.any/root/customize_airootfs_lxde.sh
channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh
channels/releng/airootfs.any/root/customize_airootfs.sh
channels/share/airootfs.any/root/customize_airootfs.sh
channels/xfce/airootfs.any/root/customize_airootfs_xfce.sh

index 46e4414..5dcdb37 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -822,7 +822,7 @@ make_customize_airootfs() {
     # customize_airootfs options
     # -b            : Enable boot splash.
     # -d            : Enable debug mode.
-    # -g <lang>     : Set language.
+    # -g <localegen>: Set locale-gen.
     # -i <inst_dir> : Set install dir
     # -k <kernel>   : Set kernel name.
     # -o <os name>  : Set os name.
@@ -833,6 +833,7 @@ make_customize_airootfs() {
     # -x            : Enable bash debug mode.
     # -r            : Enable rebuild.
     # -z <timezone> : Set the time zone.
+    # -l <language> : Set language.
     #
     # -j is obsolete in AlterISO3 and cannot be used.
 
@@ -858,7 +859,7 @@ make_customize_airootfs() {
         addition_options="${addition_options} -r"
     fi
 
-    share_options="-p '${password}' -k '${kernel}' -u '${username}' -o '${os_name}' -i '${install_dir}' -s '${usershell}' -a '${arch}' -g '${language}' -z '${timezone}'"
+    share_options="-p '${password}' -k '${kernel}' -u '${username}' -o '${os_name}' -i '${install_dir}' -s '${usershell}' -a '${arch}' -g '${localegen}' -l '${language}' -z '${timezone}'" 
 
 
     # X permission
index 2f2a34a..9ef49c3 100755 (executable)
@@ -24,10 +24,11 @@ usershell="/bin/bash"
 debug=false
 timezone="UTC"
 localegen="en_US\\.UTF-8\\"
+language="en"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
+while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -43,6 +44,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
         a) arch="${OPTARG}" ;;
         g) localegen="${OPTARG/./\\.}\\" ;;
         z) timezone="${OPTARG}" ;;
+        l) language="${OPTARG}" ;;
     esac
 done
 
index 79ad8fc..6b5bc7d 100755 (executable)
@@ -17,10 +17,11 @@ usershell="/bin/bash"
 debug=false
 timezone="UTC"
 localegen="en_US\\.UTF-8\\"
+language="en"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
+while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -36,6 +37,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
         a) arch="${OPTARG}" ;;
         g) localegen="${OPTARG/./\\.}\\" ;;
         z) timezone="${OPTARG}" ;;
+        l) language="${OPTARG}" ;;
     esac
 done
 
index a58c54d..b8bee6e 100755 (executable)
@@ -24,10 +24,11 @@ usershell="/bin/bash"
 debug=false
 timezone="UTC"
 localegen="en_US\\.UTF-8\\"
+language="en"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
+while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -43,6 +44,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
         a) arch="${OPTARG}" ;;
         g) localegen="${OPTARG/./\\.}\\" ;;
         z) timezone="${OPTARG}" ;;
+        l) language="${OPTARG}" ;;
     esac
 done
 
index 0294623..517712d 100755 (executable)
@@ -24,10 +24,11 @@ usershell="/bin/bash"
 debug=false
 timezone="UTC"
 localegen="en_US\\.UTF-8\\"
+language="en"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
+while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -43,6 +44,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
         a) arch="${OPTARG}" ;;
         g) localegen="${OPTARG/./\\.}\\" ;;
         z) timezone="${OPTARG}" ;;
+        l) language="${OPTARG}" ;;
     esac
 done
 
index eef4f40..730b888 100755 (executable)
@@ -24,10 +24,11 @@ usershell="/bin/bash"
 debug=false
 timezone="UTC"
 localegen="en_US\\.UTF-8\\"
+language="en"
 
 
 # Parse arguments
-while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
+while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
     case "${arg}" in
         p) password="${OPTARG}" ;;
         b) boot_splash=true ;;
@@ -43,6 +44,7 @@ while getopts 'p:bt:k:rxu:o:i:s:da:g:z:' arg; do
         a) arch="${OPTARG}" ;;
         g) localegen="${OPTARG/./\\.}\\" ;;
         z) timezone="${OPTARG}" ;;
+        l) language="${OPTARG}" ;;
     esac
 done