← recipes

Commit ca55b8d

0
plików
+0
dodanych
-0
usuniętych
@@ -1,118 +1,118 @@
1 -#!/bin/sh
2 -# Instaluje konfigurację i branding Pagana do pakietu Calamares.
3 -# Użycie: sh pagan-config.sh <PKGDIR>
4 -set -e
5 -D="$1"
6 -S="$(cd "$(dirname "$0")" && pwd)"
7 -
8 -mkdir -p "$D/etc/calamares/modules" "$D/usr/share/calamares/branding/paganlinux"
9 -
10 -cat > "$D/etc/calamares/settings.conf" <<'EOF'
11 -# Pagan Linux – Calamares: instalacja z live (squashfs przez modul unpackfs).
12 -sequence:
13 - - show: [welcome, locale, keyboard, partition, users, summary]
14 - - exec: [partition, mount, unpackfs, machineid, fstab, locale, keyboard, localecfg, users, displaymanager, networkcfg, hwclock, services, grubcfg, bootloader, umount]
15 - - show: [finished]
16 -
17 -branding: paganlinux
18 -EOF
19 -
20 -cat > "$D/etc/calamares/modules/unpackfs.conf" <<'EOF'
21 -unpack:
22 - - source: "/run/live/root"
23 - sourcefs: "file"
24 - destination: ""
25 -EOF
26 -
27 -cat > "$D/etc/calamares/modules/partition.conf" <<'EOF'
28 -defaultFileSystemType: "ext4"
29 -availableFileSystemTypes: ["ext4","xfs","btrfs","f2fs"]
30 -enableLuks: true
31 -requiredPartitionTableType: "gpt"
32 -requiredStorage: 8.0
33 -EOF
34 -
35 -cat > "$D/etc/calamares/modules/users.conf" <<'EOF'
36 -defaultGroups: [lp, video, audio, optical, storage, scanner, power, wheel]
37 -setRootPassword: true
38 -EOF
39 -
40 -cat > "$D/etc/calamares/modules/displaymanager.conf" <<'EOF'
41 -displaymanagers: [lightdm]
42 -basicSetup: false
43 -EOF
44 -
45 -cat > "$D/etc/calamares/modules/services.conf" <<'EOF'
46 -services:
47 - - name: NetworkManager
48 - action: enable
49 - - name: lightdm
50 - action: enable
51 - - name: pipewire
52 - action: enable
53 - - name: sshd
54 - action: disable
55 -EOF
56 -
57 -cat > "$D/etc/calamares/modules/grubcfg.conf" <<'EOF'
58 -preferGrubEfi: true
59 -EOF
60 -
61 -cat > "$D/etc/calamares/modules/bootloader.conf" <<'EOF'
62 -installEFIFallback: true
63 -EOF
64 -
65 -cat > "$D/etc/calamares/modules/networkcfg.conf" <<'EOF'
66 -writeNetworkManager: true
67 -EOF
68 -
69 -cat > "$D/etc/calamares/modules/welcome.conf" <<'EOF'
70 -showDonateUrl: false
71 -EOF
72 -
73 -cat > "$D/etc/calamares/modules/finished.conf" <<'EOF'
74 -restartNowEnabled: true
75 -restartNowCommand: "systemctl reboot"
76 -EOF
77 -
78 -cat > "$D/usr/share/calamares/branding/paganlinux/branding.desc" <<'EOF'
79 -componentName: paganlinux
80 -version: 1.0
81 -welcomeStyleCalamares: true
82 -strings:
83 - productName: "Pagan Linux"
84 - shortProductName: "Pagan"
85 - version: "1.0 Loki"
86 - shortVersion: "1.0"
87 - versionedName: "Pagan Linux 1.0 Loki"
88 - bootloaderEntryName: "Pagan Linux"
89 - productUrl: "https://paganlinux.eu"
90 - supportUrl: "https://paganlinux.eu/support"
91 -images:
92 - productLogo: "logo.png"
93 - productIcon: "icon.png"
94 - productWelcome: "welcome.png"
95 -
96 -style:
97 - sidebarBackground: "#1a1a2e"
98 - sidebarText: "#e0e0e0"
99 - sidebarTextSelect: "#58a6ff"
100 -EOF
101 -
102 -[ -f "$S/logo.png" ] && install -m644 "$S/logo.png" "$D/usr/share/calamares/branding/paganlinux/logo.png"
103 -[ -f "$S/icon.png" ] && install -m644 "$S/icon.png" "$D/usr/share/calamares/branding/paganlinux/icon.png"
104 -[ -f "$S/welcome.png" ] && install -m644 "$S/welcome.png" "$D/usr/share/calamares/branding/paganlinux/welcome.png"
105 -
106 -exit 0
1 +#!/bin/sh
2 +# Instaluje konfigurację i branding Pagana do pakietu Calamares.
3 +# Użycie: sh pagan-config.sh <PKGDIR>
4 +set -e
5 +D="$1"
6 +S="$(cd "$(dirname "$0")" && pwd)"
7 +
8 +mkdir -p "$D/etc/calamares/modules" "$D/usr/share/calamares/branding/paganlinux"
9 +
10 +cat > "$D/etc/calamares/settings.conf" <<'EOF'
11 +---
12 +# Pagan Linux – Calamares: instalacja z live (squashfs przez modul unpackfs).
13 +sequence:
14 + - show: [welcome, locale, keyboard, partition, users, summary]
15 + - exec: [partition, mount, unpackfs, machineid, fstab, locale, keyboard, localecfg, users, displaymanager, networkcfg, hwclock, services, grubcfg, bootloader, umount]
16 + - show: [finished]
17 +
18 +branding: paganlinux
19 +EOF
20 +
21 +cat > "$D/etc/calamares/modules/unpackfs.conf" <<'EOF'
22 +---
23 +unpack:
24 + - source: "/run/live/root"
25 + sourcefs: "file"
26 + destination: ""
27 +EOF
28 +
29 +cat > "$D/etc/calamares/modules/partition.conf" <<'EOF'
30 +---
31 +defaultFileSystemType: "ext4"
32 +availableFileSystemTypes: ["ext4","xfs","btrfs","f2fs"]
33 +enableLuks: true
34 +requiredPartitionTableType: "gpt"
35 +requiredStorage: 8.0
36 +EOF
37 +
38 +cat > "$D/etc/calamares/modules/users.conf" <<'EOF'
39 +---
40 +defaultGroups: [lp, video, audio, optical, storage, scanner, power, wheel]
41 +setRootPassword: true
42 +EOF
43 +
44 +cat > "$D/etc/calamares/modules/displaymanager.conf" <<'EOF'
45 +---
46 +displaymanagers: [lightdm]
47 +basicSetup: false
48 +EOF
49 +
50 +cat > "$D/etc/calamares/modules/services.conf" <<'EOF'
51 +---
52 +services:
53 + - name: NetworkManager
54 + action: enable
55 + - name: lightdm
56 + action: enable
57 + - name: pipewire
58 + action: enable
59 + - name: sshd
60 + action: disable
61 +EOF
62 +
63 +cat > "$D/etc/calamares/modules/grubcfg.conf" <<'EOF'
64 +---
65 +preferGrubEfi: true
66 +EOF
67 +
68 +cat > "$D/etc/calamares/modules/bootloader.conf" <<'EOF'
69 +---
70 +installEFIFallback: true
71 +EOF
72 +
73 +cat > "$D/etc/calamares/modules/networkcfg.conf" <<'EOF'
74 +---
75 +writeNetworkManager: true
76 +EOF
77 +
78 +cat > "$D/etc/calamares/modules/welcome.conf" <<'EOF'
79 +---
80 +showDonateUrl: false
81 +EOF
82 +
83 +cat > "$D/etc/calamares/modules/finished.conf" <<'EOF'
84 +---
85 +restartNowEnabled: true
86 +restartNowCommand: "systemctl reboot"
87 +EOF
88 +
89 +cat > "$D/usr/share/calamares/branding/paganlinux/branding.desc" <<'EOF'
90 +---
91 +componentName: paganlinux
92 +version: 0.1.2
93 +welcomeStyleCalamares: true
94 +strings:
95 + productName: "Pagan Linux"
96 + shortProductName: "Pagan"
97 + version: "0.1.2 Marzanna"
98 + shortVersion: "0.1.2"
99 + versionedName: "Pagan Linux 0.1.2 Marzanna"
100 + bootloaderEntryName: "Pagan Linux"
101 + productUrl: "https://paganlinux.eu"
102 + supportUrl: "https://git.paganlinux.eu/git/PaganLinux/issues"
103 +images:
104 + productLogo: "logo.png"
105 + productIcon: "icon.png"
106 + productWelcome: "welcome.png"
107 +
108 +style:
109 + sidebarBackground: "#1a1a2e"
110 + sidebarText: "#e0e0e0"
111 + sidebarTextSelect: "#58a6ff"
112 +EOF
113 +
114 +[ -f "$S/logo.png" ] && install -m644 "$S/logo.png" "$D/usr/share/calamares/branding/paganlinux/logo.png"
115 +[ -f "$S/icon.png" ] && install -m644 "$S/icon.png" "$D/usr/share/calamares/branding/paganlinux/icon.png"
116 +[ -f "$S/welcome.png" ] && install -m644 "$S/welcome.png" "$D/usr/share/calamares/branding/paganlinux/welcome.png"
117 +
118 +exit 0