Skip to content

Commit 24dd12a

Browse files
committed
Merge branch 'dev' into dev-stable
2 parents bf1a696 + 1b60f5e commit 24dd12a

File tree

11 files changed

+140
-68
lines changed

11 files changed

+140
-68
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
pkg/
1313
src/
1414
out/
15-
work/
15+
work/
16+
17+
airootfs/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
18+
airootfs/etc/skel/.config/xfce4/desktop/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# [greeter]
3+
# debug_mode = Greeter theme debug mode.
4+
# detect_theme_errors = Provide an option to load a fallback theme when theme errors are detected.
5+
# screensaver_timeout = Blank the screen after this many seconds of inactivity.
6+
# secure_mode = Don't allow themes to make remote http requests.
7+
# time_format = A moment.js format string so the greeter can generate localized time for display.
8+
# time_language = Language to use when displaying the time or "auto" to use the system's language.
9+
# webkit_theme = Webkit theme to use.
10+
#
11+
# NOTE: See moment.js documentation for format string options: http://momentjs.com/docs/#/displaying/format/
12+
#
13+
14+
[greeter]
15+
debug_mode = false
16+
detect_theme_errors = true
17+
screensaver_timeout = 300
18+
secure_mode = true
19+
time_format = LT
20+
time_language = auto
21+
webkit_theme = alter
22+
23+
#
24+
# [branding]
25+
# background_images = Path to directory that contains background images for use by themes.
26+
# logo = Path to logo image for use by greeter themes.
27+
# user_image = Default user image/avatar. This is used by themes for users that have no .face image.
28+
#
29+
# NOTE: Paths must be accessible to the lightdm system user account (so they cannot be anywhere in /home)
30+
#
31+
32+
[branding]
33+
background_images = /usr/share/backgrounds
34+
logo = /usr/share/pixmaps/archlinux-logo.svg
35+
user_image = /usr/share/pixmaps/archlinux-user.svg

airootfs/etc/lightdm/slick-greeter.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

airootfs/etc/skel/.config/xfce4/panel/whiskermenu-3.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop
2-
recent=xfce-display-settings.desktop,xfce-settings-manager.desktop,exo-file-manager.desktop,exo-terminal-emulator.desktop,exo-web-browser.desktop
1+
favorites=chromium.desktop,thunderbird.desktop,vlc.desktop,leafpad.desktop,code-oss.desktop,xfce4-screenshooter.desktop
2+
recent=
33
button-title=Alter
44
button-icon=alter
55
button-single-row=false
@@ -14,7 +14,7 @@ category-show-name=true
1414
category-icon-size=1
1515
load-hierarchy=false
1616
view-as-icons=false
17-
recent-items-max=10
17+
recent-items-max=0
1818
favorites-in-recent=true
1919
display-recent-default=false
2020
position-search-alternate=true

build.sh

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ _usage () {
6868
echo " -w <work_dir> Set the working directory"
6969
echo " Default: ${work_dir}"
7070
echo " -h This help message"
71+
echo " -x Enable debug mode."
7172
exit ${1}
7273
}
7374

@@ -186,6 +187,7 @@ make_customize_airootfs() {
186187
# -b : Enable boot splash.
187188
# -t : Set plymouth theme.
188189
# -k <kernel> : Set kernel name.
190+
# -x : Enable debug mode.
189191

190192

191193
local options
@@ -401,18 +403,12 @@ while getopts 'w:o:g:p:c:t:hbk:x' arg; do
401403
t) sfs_comp_opt=${OPTARG} ;;
402404
b) boot_splash=true ;;
403405
k)
404-
case ${OPTARG} in
405-
"lts") kernel="lts" ;;
406-
"lqx") kernel="lqx" ;;
407-
"zen") kernel="zen" ;;
408-
"ck") kernel="ck" ;;
409-
"rt") kernel="rt" ;;
410-
"rt-lts") kernel="rt-lts" ;;
411-
*)
412-
echo "Invalid kernel ${OPTARG}" >&2
413-
_usage 1
414-
;;
415-
esac
406+
if [[ -n $(cat ./kernel_list | grep -x "${OPTARG}") ]]; then
407+
kernel="${OPTARG}"
408+
else
409+
echo "Invalid kernel ${OPTARG}" >&2
410+
_usage 1
411+
fi
416412
;;
417413
x) debug=true;;
418414
h) _usage 0 ;;
@@ -440,7 +436,6 @@ echo "Live user password is ${password}."
440436
echo "The compression method of squashfs is ${sfs_comp}."
441437
sleep 2
442438

443-
444439
run_once make_pacman_conf
445440
run_once make_basefs
446441
run_once make_packages

kernel_list

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lts
2+
lqx
3+
zen
4+
ck
5+
rt
6+
rt-lts

packages.x86_64

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ irssi
5353

5454
#-- display manager --#
5555
lightdm
56-
#lightdm-gtk-greeter
57-
lightdm-slick-greeter
58-
lightdm-settings
56+
lightdm-webkit2-greeter
57+
lightdm-webkit2-theme-alter
58+
# lightdm-gtk-greeter
59+
# lightdm-slick-greeter
60+
# lightdm-settings
5961

6062

6163
#-- disk management --#

support_a_new_kernel.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## 日本語
2+
3+
### 新しいカーネルに対応させる
4+
5+
Alter Linuxを新しいカーネルに対応させる手順です。ここでは`linux-fooo`を追加する手順を説明します。実際に行う場合はこの文字を置き換えてください。
6+
リポジトリには2種類のパッケージを追加する必要があります。カーネル本体とheadersパッケージです。
7+
8+
9+
#### 1.リポジトリを作成する
10+
11+
`build.sh`はカーネルをpacmanを利用してインストールしようとします。もしあなたが公式リポジトリに無いカーネルを追加したい場合はまずはpacmanのリポジトリを作成してください。
12+
リポジトリはGitHubを利用して簡単に作成できます。
13+
14+
#### 2.カーネル一覧に追加する
15+
16+
`kernel_list`にカーネル名を追記してください。`build.sh`に渡された値が正しいかどうかはこの変数を利用して判定されます。
17+
リストに追加する値は`linux-`の後の文字です。今回の場合は`fooo`になります。
18+
19+
```bash
20+
echo "fooo" >> ./kernel_list
21+
```
22+
23+
#### 3.ファイルを作成する
24+
そのカーネル用のファイルを6つ作成する必要があります。以下はカーネルの一覧です。
25+
「既存のファイルを名前を変えてコピーし、カーネルへのパスを修正する」という作成砲お方が最も簡単です。
26+
ファイル名は`fooo`に置き換えてあります。
27+
- syslinux/archiso_sys/archiso_sys-fooo.cfg
28+
- syslinux/archiso_pxe/archiso_pxe-fooo.cfg
29+
- efiboot/loader/entries/cd/archiso-x86_64-cd-fooo.conf
30+
- efiboot/loader/entries/usb/archiso-x86_64-usb-fooo.conf
31+
- airootfs/usr/share/calamares/modules/unpackfs/unpackfs-fooo.conf
32+
- airootfs/usr/share/calamares/modules/initcpio/initcpio-fooo.conf
33+
34+
##### archiso_sys-fooo.cfg
35+
36+
9行目のパスを変更してください。
37+
38+
##### archiso_pxe-fooo.cfg
39+
40+
9行目、20行目、31行目のパスを変更してください。
41+
42+
##### archiso-x86_64-cd-fooo.conf
43+
44+
2行目のパスを変更してください。
45+
46+
##### archiso-x86_64-usb-fooo.conf
47+
48+
2行目のパスを変更してください。
49+
50+
##### unpackfs-fooo.conf
51+
95行目、97行目のパスを変更してください。
52+
53+
##### initcpio-fooo.conf
54+
18行目のパスを変更してください。
55+
56+
#### 4.プルリクエストを送る
57+
[ここ](https://github.com/SereneTeam/alterlinux/pulls)へプルリクエストを投稿してください。
58+

syslinux/archiso_sys/archiso_pxe-rt-lts.cfg

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
INCLUDE boot/syslinux/archiso_head.cfg
2+
3+
LABEL arch64
4+
TEXT HELP
5+
Boot the Alter Linux (x86_64) live medium.
6+
It allows you to install Alter Linux or perform system maintenance.
7+
ENDTEXT
8+
MENU LABEL Boot Alter Linux (x86_64)
9+
LINUX boot/x86_64/vmlinuz-linux-rt-lts
10+
INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/archiso.img
11+
APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
12+
13+
INCLUDE boot/syslinux/archiso_tail.cfg

0 commit comments

Comments
 (0)