🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
#!/bin/sh
# Instaluje konfigurację i branding Pagana do pakietu Calamares.
# Użycie: sh pagan-config.sh <PKGDIR>
set -e
D="$1"
S="$(cd "$(dirname "$0")" && pwd)"
mkdir -p "$D/etc/calamares/modules" "$D/usr/share/calamares/branding/paganlinux"
cat > "$D/etc/calamares/settings.conf" <<'EOF'
---
# Pagan Linux – Calamares: instalacja z live (squashfs przez modul unpackfs).
sequence:
- show: [welcome, locale, keyboard, partition, users, summary]
- exec: [partition, mount, unpackfs, machineid, fstab, locale, keyboard, localecfg, users, displaymanager, networkcfg, hwclock, services, grubcfg, bootloader, umount]
- show: [finished]
branding: paganlinux
EOF
cat > "$D/etc/calamares/modules/unpackfs.conf" <<'EOF'
---
unpack:
- source: "/run/live/root"
sourcefs: "file"
destination: ""
EOF
cat > "$D/etc/calamares/modules/partition.conf" <<'EOF'
---
defaultFileSystemType: "ext4"
availableFileSystemTypes: ["ext4","xfs","btrfs","f2fs"]
enableLuks: true
requiredPartitionTableType: "gpt"
requiredStorage: 8.0
EOF
cat > "$D/etc/calamares/modules/users.conf" <<'EOF'
---
defaultGroups: [lp, video, audio, optical, storage, scanner, power, wheel]
setRootPassword: true
EOF
cat > "$D/etc/calamares/modules/displaymanager.conf" <<'EOF'
---
displaymanagers: [lightdm]
basicSetup: false
EOF
cat > "$D/etc/calamares/modules/services.conf" <<'EOF'
---
services:
- name: NetworkManager
action: enable
- name: lightdm
action: enable
- name: pipewire
action: enable
- name: sshd
action: disable
EOF
cat > "$D/etc/calamares/modules/grubcfg.conf" <<'EOF'
---
preferGrubEfi: true
EOF
cat > "$D/etc/calamares/modules/bootloader.conf" <<'EOF'
---
installEFIFallback: true
EOF
cat > "$D/etc/calamares/modules/networkcfg.conf" <<'EOF'
---
writeNetworkManager: true
EOF
cat > "$D/etc/calamares/modules/welcome.conf" <<'EOF'
---
showDonateUrl: false
EOF
cat > "$D/etc/calamares/modules/finished.conf" <<'EOF'
---
restartNowEnabled: true
restartNowCommand: "systemctl reboot"
EOF
cat > "$D/usr/share/calamares/branding/paganlinux/branding.desc" <<'EOF'
---
componentName: paganlinux
version: 0.1.2
welcomeStyleCalamares: true
strings:
productName: "Pagan Linux"
shortProductName: "Pagan"
version: "0.1.2 Marzanna"
shortVersion: "0.1.2"
versionedName: "Pagan Linux 0.1.2 Marzanna"
bootloaderEntryName: "Pagan Linux"
productUrl: "https://paganlinux.eu"
supportUrl: "https://git.paganlinux.eu/git/PaganLinux/issues"
images:
productLogo: "logo.png"
productIcon: "icon.png"
productWelcome: "welcome.png"
style:
sidebarBackground: "#1a1a2e"
sidebarText: "#e0e0e0"
sidebarTextSelect: "#58a6ff"
EOF
[ -f "$S/logo.png" ] && install -m644 "$S/logo.png" "$D/usr/share/calamares/branding/paganlinux/logo.png"
[ -f "$S/icon.png" ] && install -m644 "$S/icon.png" "$D/usr/share/calamares/branding/paganlinux/icon.png"
[ -f "$S/welcome.png" ] && install -m644 "$S/welcome.png" "$D/usr/share/calamares/branding/paganlinux/welcome.png"
exit 0