# 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.
# -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.
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
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 ;;
a) arch="${OPTARG}" ;;
g) localegen="${OPTARG/./\\.}\\" ;;
z) timezone="${OPTARG}" ;;
+ l) language="${OPTARG}" ;;
esac
done
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 ;;
a) arch="${OPTARG}" ;;
g) localegen="${OPTARG/./\\.}\\" ;;
z) timezone="${OPTARG}" ;;
+ l) language="${OPTARG}" ;;
esac
done
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 ;;
a) arch="${OPTARG}" ;;
g) localegen="${OPTARG/./\\.}\\" ;;
z) timezone="${OPTARG}" ;;
+ l) language="${OPTARG}" ;;
esac
done
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 ;;
a) arch="${OPTARG}" ;;
g) localegen="${OPTARG/./\\.}\\" ;;
z) timezone="${OPTARG}" ;;
+ l) language="${OPTARG}" ;;
esac
done
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 ;;
a) arch="${OPTARG}" ;;
g) localegen="${OPTARG/./\\.}\\" ;;
z) timezone="${OPTARG}" ;;
+ l) language="${OPTARG}" ;;
esac
done