52 lines
3.7 KiB
Bash
52 lines
3.7 KiB
Bash
# Initial clean GNOME integration profile only; not a generic rebase adapter.
|
|
systemctl --root=/job/core disable systemd-networkd archipelago-firstboot@tty1 archipelago-firstboot@ttyS0 getty@tty1 serial-getty@ttyS0 kmsconvt@tty1
|
|
# D-109: the display manager owns tty1, kmscon serves the VTs logind opens after
|
|
# it (Ctrl+Alt+F2...). Desktops ship mesa, which kmscon's render engines need at
|
|
# runtime, and the packaged OnFailure=getty@%i keeps a non-KMS fallback. The
|
|
# finalizer owns this because the Purpose build never runs the Core-tree block.
|
|
test -f /job/core/usr/lib/libEGL.so.1
|
|
install -Dm644 /job/core/usr/lib/archipelago/defaults/kmscon.conf /job/core/etc/kmscon/kmscon.conf
|
|
mkdir -p /job/core/etc/systemd/system
|
|
ln -sfn /usr/lib/systemd/system/kmsconvt@.service /job/core/etc/systemd/system/autovt@.service
|
|
rm -f /job/core/etc/systemd/system/autovt@tty1.service
|
|
test "$(readlink /job/core/etc/systemd/system/autovt@.service)" = /usr/lib/systemd/system/kmsconvt@.service
|
|
test ! -e /job/core/etc/systemd/system/autovt@tty1.service
|
|
test ! -e /job/core/etc/systemd/system/kmsconvt@tty1.service
|
|
systemctl --root=/job/core enable NetworkManager gdm bluetooth cups.socket power-profiles-daemon switcheroo-control \
|
|
archipelago-gnome-onboarding.timer
|
|
systemctl --root=/job/core set-default graphical.target
|
|
if [[ -f /job/core/usr/lib/systemd/system/archipelago-software-refresh.service ]]; then
|
|
systemctl --root=/job/core enable archipelago-software-refresh.timer
|
|
fi
|
|
mkdir -p /job/core/etc/NetworkManager/conf.d /job/core/etc/sudoers.d /job/core/etc/containers /job/core/etc/archipelago
|
|
printf '[main]\ndns=systemd-resolved\n' > /job/core/etc/NetworkManager/conf.d/20-archipelago.conf
|
|
printf '%%wheel ALL=(ALL:ALL) ALL\n' > /job/core/etc/sudoers.d/10-archipelago-wheel
|
|
chmod 0440 /job/core/etc/sudoers.d/10-archipelago-wheel
|
|
arch-chroot /job/core visudo -c
|
|
mkdir -p /job/core/etc/plymouth
|
|
printf '[Daemon]\nTheme=archipelago-bgrt\n' > /job/core/etc/plymouth/plymouthd.conf
|
|
test -f /job/core/usr/share/plymouth/themes/archipelago-bgrt/archipelago-bgrt.plymouth
|
|
test -f /job/core/usr/share/plymouth/themes/archipelago-bgrt/watermark.png
|
|
! grep -q 'UseFirmwareBackground=true' /job/core/usr/share/plymouth/themes/archipelago-bgrt/archipelago-bgrt.plymouth
|
|
cp /job/core/usr/share/archipelago/desktop/toolbox.conf /job/core/etc/containers/toolbox.conf
|
|
install -Dm644 /job/core/usr/share/archipelago/desktop/toolbox-registries.conf /job/core/etc/containers/registries.conf.d/60-archipelago-toolbox.conf
|
|
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
# The composer ignores GIO module caches as generated output; rebuild them
|
|
# for the final module set instead of inheriting the Core cache.
|
|
arch-chroot /job/core gio-querymodules /usr/lib/gio/modules
|
|
if [[ -d /job/core/usr/lib32/gio/modules ]]; then
|
|
arch-chroot /job/core gio-querymodules /usr/lib32/gio/modules
|
|
fi
|
|
arch-chroot /job/core update-desktop-database /usr/share/applications
|
|
arch-chroot /job/core update-mime-database /usr/share/mime
|
|
# Publish the packaged distributor icon to the shared hicolor cache.
|
|
arch-chroot /job/core gtk-update-icon-cache -f -t /usr/share/icons/hicolor
|
|
# Until the Archipelago backend exists, a probe must never activate ALPM mutation.
|
|
mkdir -p /job/core/etc/systemd/system
|
|
# D-095: stock Software plus native OS/Flatpak plugins, no PackageKit packages.
|
|
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Qq > /job/evidence/desktop-package-names.txt
|
|
if grep -Ei '^(packagekit($|-)|libpackagekit)' /job/evidence/desktop-package-names.txt; then
|
|
echo 'D-095: PackageKit is excluded from Desktop images' >&2
|
|
exit 1
|
|
fi
|
|
printf 'GNOME integration probe: OS GUI update backend pending\n' > /job/core/usr/lib/archipelago/desktop-integration-status
|