From a5785c83a07f2eb73de4aec474672ec9dc7f8fd4 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Wed, 16 Apr 2025 22:26:51 +0200 Subject: [PATCH] chore: remove zen --- build.sh | 12 --------- .../lib/systemd/system/azure-optfix.service | 11 -------- files/usr/libexec/azure-optfix | 27 ------------------- packages | 1 - 4 files changed, 51 deletions(-) delete mode 100644 files/usr/lib/systemd/system/azure-optfix.service delete mode 100755 files/usr/libexec/azure-optfix diff --git a/build.sh b/build.sh index 7b465f8..d6d4834 100755 --- a/build.sh +++ b/build.sh @@ -23,8 +23,6 @@ curl -Lo /etc/yum.repos.d/_copr_pgdev-ghostty-"${RELEASE}".repo https://copr.fed curl -Lo /etc/yum.repos.d/_copr_alternateved-bleeding-emacs-"${RELEASE}".repo https://copr.fedorainfracloud.org/coprs/alternateved/bleeding-emacs/repo/fedora-"${RELEASE}"/alternateved-bleeding-emacs-fedora-"${RELEASE}".repo -curl -Lo /etc/yum.repos.d/_copr-sneexy-zen-browser-"${RELEASE}".repo https://copr.fedorainfracloud.org/coprs/sneexy/zen-browser/repo/fedora-"${RELEASE}"/sneexy-zen-browsder-fedora-"${RELEASE}".repo - curl -Lo /etc/yum.repos.d/_copr-ulysg-xwayland-satellite-"${RELEASE}".repo https://copr.fedorainfracloud.org/coprs/ulysg/xwayland-satellite/repo/fedora-"${RELEASE}"/ulysg-xwayland-satellite-fedora-"${RELEASE}".repo curl https://downloads.1password.com/linux/keys/1password.asc | tee /etc/pki/rpm-gpg/1password.gpg @@ -38,16 +36,6 @@ bash ./1password.sh rm 1password.sh -### Fix for packages that install into /opt - -mkdir -p /var/opt -ln -sf /var/opt /opt - -mkdir -p /usr/lib/opt/zen -ln -sf /usr/lib/opt/zen /var/opt/zen - -systemctl enable azure-optfix - ### Install packages grep -v '^#' /tmp/packages | xargs rpm-ostree install diff --git a/files/usr/lib/systemd/system/azure-optfix.service b/files/usr/lib/systemd/system/azure-optfix.service deleted file mode 100644 index fdd70c8..0000000 --- a/files/usr/lib/systemd/system/azure-optfix.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Create symbolic links for directories in /usr/lib/opt/ to /var/opt/ -After=multi-user.target - -[Service] -Type=oneshot -ExecStart=/usr/libexec/azure-optfix -RemainAfterExit=no - -[Install] -WantedBy=default.target diff --git a/files/usr/libexec/azure-optfix b/files/usr/libexec/azure-optfix deleted file mode 100755 index 2a33403..0000000 --- a/files/usr/libexec/azure-optfix +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -SOURCE_DIR="/usr/lib/opt/" -TARGET_DIR="/var/opt/" - -# Ensure the target directory exists -mkdir -p "$TARGET_DIR" - -# Loop through directories in the source directory -for dir in "$SOURCE_DIR"*/; do - if [ -d "$dir" ]; then - # Get the base name of the directory - dir_name=$(basename "$dir") - - # Check if the symlink already exists in the target directory - if [ -L "$TARGET_DIR/$dir_name" ]; then - echo "Symlink already exists for $dir_name, skipping." - continue - fi - - # Create the symlink - ln -s "$dir" "$TARGET_DIR/$dir_name" - echo "Created symlink for $dir_name" - fi -done diff --git a/packages b/packages index 11e62c7..0a6a56c 100644 --- a/packages +++ b/packages @@ -10,7 +10,6 @@ xwayland-satellite fprintd-pam # apps -zen-browser 1password emacs foot