Skip to content

Commit a9b906c

Browse files
committed
[update] : Updated document
1 parent 7cdf7bc commit a9b906c

File tree

2 files changed

+7
-102
lines changed

2 files changed

+7
-102
lines changed

docs/en/CHANNEL_2_to_3.md

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Previous`japanese`variable not working.
1717

1818
### customize_airootfs_<ch_name>.sh
1919

20-
#### Argument analysis
21-
Argument analysis part has a big change. Please rewrite below instruction.
22-
Rewrite directly and DON'T change source-code.
20+
The argument parsing part is no longer needed. Please delete the relevant part.
21+
Also, function definitions such as remove are no longer required.
22+
See [share/customize_airootfs.sh](https://github.com/FascodeNet/alterlinux/blob/dev/channels/share/airootfs.any/root/customize_airootfs.sh) for available variables and functions.
2323

2424
##### Previous code
2525

@@ -59,53 +59,6 @@ while getopts 'p:bt:k:rxju:o:i:s:da:' arg; do
5959
done
6060
```
6161
62-
##### AlterISO3's code (at July 31,2021)
63-
64-
```bash
65-
# Default value
66-
# All values can be changed by arguments.
67-
password=alter
68-
boot_splash=false
69-
kernel_config_line=("zen" "vmlinuz-linux-zen" "linux-zen")
70-
theme_name=alter-logo
71-
rebuild=false
72-
username='alter'
73-
os_name="Alter Linux"
74-
install_dir="alter"
75-
usershell="/bin/bash"
76-
debug=false
77-
timezone="UTC"
78-
localegen="en_US\\.UTF-8\\"
79-
language="en"
80-
81-
82-
# Parse arguments
83-
while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
84-
case "${arg}" in
85-
p) password="${OPTARG}" ;;
86-
b) boot_splash=true ;;
87-
t) theme_name="${OPTARG}" ;;
88-
k) kernel_config_line=(${OPTARG}) ;;
89-
r) rebuild=true ;;
90-
u) username="${OPTARG}" ;;
91-
o) os_name="${OPTARG}" ;;
92-
i) install_dir="${OPTARG}" ;;
93-
s) usershell="${OPTARG}" ;;
94-
d) debug=true ;;
95-
x) debug=true; set -xv ;;
96-
a) arch="${OPTARG}" ;;
97-
g) localegen="${OPTARG/./\\.}\\" ;;
98-
z) timezone="${OPTARG}" ;;
99-
l) language="${OPTARG}" ;;
100-
esac
101-
done
102-
103-
104-
# Parse kernel
105-
kernel="${kernel_config_line[0]}"
106-
kernel_filename="${kernel_config_line[1]}"
107-
kernel_mkinitcpio_profile="${kernel_config_line[2]}"
108-
```
10962
11063
#### Japanize process part
11164
In the past, the `japanese` variable was separated by `true` or `false`for Japanizing.

docs/jp/CHANNEL_2_to_3.md

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ AlterISO3は`locale_name`の値を元にいくつかの変数を`system/locale-<
2727
`locale.gen`の値は`locale_gen_name`変数、タイムゾーンは`locale_time`変数で設定できます。
2828
詳細は[releng](/channels/releng/config.any)を参考にして下さい。
2929

30-
### customize_airootfs_<ch_name>.sh
3130

32-
#### 引数解析
31+
### customize_airootfs_<ch_name>.sh
3332

34-
引数解析部分が大きく変更されています。以下の指示に従って書き換えて下さい。
3533

36-
そのまま書き換えを行い、コードは変更しないでください。
34+
引数解析部分が不要になりました。該当部分を削除してください。
35+
また、`remove`などの関数定義も不要になりました。
36+
利用可能な変数や関数は[share/customize_airootfs.sh](https://github.com/FascodeNet/alterlinux/blob/dev/channels/share/airootfs.any/root/customize_airootfs.sh)を参照してください。
3737

3838
##### 以前のコード
3939

@@ -73,54 +73,6 @@ while getopts 'p:bt:k:rxju:o:i:s:da:' arg; do
7373
done
7474
```
7575
76-
##### AlterISO3のコード(2021年7月31日現在)
77-
78-
```bash
79-
# Default value
80-
# Default value
81-
# All values can be changed by arguments.
82-
password=alter
83-
boot_splash=false
84-
kernel_config_line=("zen" "vmlinuz-linux-zen" "linux-zen")
85-
theme_name=alter-logo
86-
rebuild=false
87-
username='alter'
88-
os_name="Alter Linux"
89-
install_dir="alter"
90-
usershell="/bin/bash"
91-
debug=false
92-
timezone="UTC"
93-
localegen="en_US\\.UTF-8\\"
94-
language="en"
95-
96-
97-
# Parse arguments
98-
while getopts 'p:bt:k:rxu:o:i:s:da:g:z:l:' arg; do
99-
case "${arg}" in
100-
p) password="${OPTARG}" ;;
101-
b) boot_splash=true ;;
102-
t) theme_name="${OPTARG}" ;;
103-
k) kernel_config_line=(${OPTARG}) ;;
104-
r) rebuild=true ;;
105-
u) username="${OPTARG}" ;;
106-
o) os_name="${OPTARG}" ;;
107-
i) install_dir="${OPTARG}" ;;
108-
s) usershell="${OPTARG}" ;;
109-
d) debug=true ;;
110-
x) debug=true; set -xv ;;
111-
a) arch="${OPTARG}" ;;
112-
g) localegen="${OPTARG/./\\.}\\" ;;
113-
z) timezone="${OPTARG}" ;;
114-
l) language="${OPTARG}" ;;
115-
esac
116-
done
117-
118-
119-
# Parse kernel
120-
kernel="${kernel_config_line[0]}"
121-
kernel_filename="${kernel_config_line[1]}"
122-
kernel_mkinitcpio_profile="${kernel_config_line[2]}"
123-
```
12476
12577
#### 日本語用処理部分
12678

0 commit comments

Comments
 (0)