diff --git a/PKGBUILD b/PKGBUILD index 8dffc08..107917a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=bbt-calamares-config _destname1="/etc" pkgver=25.11 -pkgrel=06 +pkgrel=08 pkgdesc="calamares for bbt" arch=('any') url="https://yuyujing.cn" diff --git a/bbt-calamares-config/etc/calamares/modules/post-install-config.conf b/bbt-calamares-config/etc/calamares/modules/post-install-config.conf new file mode 100644 index 0000000..74fd781 --- /dev/null +++ b/bbt-calamares-config/etc/calamares/modules/post-install-config.conf @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: no +# SPDX-License-Identifier: CC0-1.0 +# +# Calamares shellprocess module configuration for post-installation tasks. +# This script will run in the context of the target system after installation. +--- +dontChroot: false +timeout: 999 + +script: + - "- teamviewer --passwd 'Bbt123!@#'" + - "- ${ROOT}/usr/local/bin/change-servername_s2" + - "- /bin/bash ${ROOT}/home/smart/smart-organizer-service-install.sh" + - "- mv ${ROOT}/usr/bin/dcpomatic2_create ${ROOT}/usr/bin/dcpomatic2_create_original" + - "- cp ${ROOT}/home/smart/dcpomatic2_create ${ROOT}/usr/bin/dcpomatic2_create" + - "- chmod 755 ${ROOT}/usr/bin/dcpomatic2_create" +# - "- rm -rf ${ROOT}/home/${USER}/.config/autostart/first-start.desktop" +# - "- rm -rf ${ROOT}/home/${USER}/first-start.sh" + - "- cp ${ROOT}/home/${USER}/Desktop/*.desktop ${ROOT}/usr/share/applications/" + - "- cp ${ROOT}/home/${USER}/*.desktop ${ROOT}/usr/share/applications/" +# - "- mv ${ROOT}/etc/pacman.d/mirrorlist ${ROOT}/etc/pacman.d/mirrorlist.bak" +# - "- mv ${ROOT}/etc/pacman.d/mirrorlist~ ${ROOT}/etc/pacman.d/mirrorlist" diff --git a/bbt-calamares-config/etc/calamares/settings.conf b/bbt-calamares-config/etc/calamares/settings.conf index 9b06cfb..c297aa0 100644 --- a/bbt-calamares-config/etc/calamares/settings.conf +++ b/bbt-calamares-config/etc/calamares/settings.conf @@ -198,7 +198,10 @@ instances: weight: 1 config: shellprocess-final.conf - +- id: post-install-final + module: shellprocess + weight: 1 + config: post-install-config.conf sequence: @@ -262,6 +265,7 @@ sequence: - grubcfg - bootloader - shellprocess@final + - shellprocess@post-install-final - preservefiles - umount - show: