From 2deeb2645f98e29c54f90e0ad75a2675838710e9 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Wed, 4 Sep 2024 17:37:48 +0200 Subject: [PATCH] [variants] Update pacman wrapper --- .../arkanelinux/overlay/post_bootstrap/usr/abin/pacman | 6 +++--- .../overlay/post_bootstrap/usr/abin/pacman | 6 +++--- .../overlay/post_bootstrap/usr/abin/pacman | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arkdep-build.d/arkanelinux/overlay/post_bootstrap/usr/abin/pacman b/arkdep-build.d/arkanelinux/overlay/post_bootstrap/usr/abin/pacman index 6ee0f17..0e7a899 100755 --- a/arkdep-build.d/arkanelinux/overlay/post_bootstrap/usr/abin/pacman +++ b/arkdep-build.d/arkanelinux/overlay/post_bootstrap/usr/abin/pacman @@ -1,13 +1,13 @@ #!/usr/bin/env bash -# Elevate permissions to root -[[ $EUID -eq 0 ]] || exec sudo bash $0 $@ - if [[ $@ =~ (-r|--root) ]] || [[ $@ == "-Q"* ]] || [[ $@ == "-F"* ]] || [[ $LD_LIBRARY_PATH =~ (libfakeroot) ]]; then no_check=1 fi if [[ ! $no_check ]]; then + # Elevate permissions to root + [[ $EUID -eq 0 ]] || exec sudo bash $0 $@ + # Check if the disk is ro'ed using subvolume properties if btrfs property get / 2> /dev/null | grep -q 'ro=true'; then cat <<- END diff --git a/arkdep-build.d/test-arkanelinux-kde/overlay/post_bootstrap/usr/abin/pacman b/arkdep-build.d/test-arkanelinux-kde/overlay/post_bootstrap/usr/abin/pacman index 6ee0f17..0e7a899 100755 --- a/arkdep-build.d/test-arkanelinux-kde/overlay/post_bootstrap/usr/abin/pacman +++ b/arkdep-build.d/test-arkanelinux-kde/overlay/post_bootstrap/usr/abin/pacman @@ -1,13 +1,13 @@ #!/usr/bin/env bash -# Elevate permissions to root -[[ $EUID -eq 0 ]] || exec sudo bash $0 $@ - if [[ $@ =~ (-r|--root) ]] || [[ $@ == "-Q"* ]] || [[ $@ == "-F"* ]] || [[ $LD_LIBRARY_PATH =~ (libfakeroot) ]]; then no_check=1 fi if [[ ! $no_check ]]; then + # Elevate permissions to root + [[ $EUID -eq 0 ]] || exec sudo bash $0 $@ + # Check if the disk is ro'ed using subvolume properties if btrfs property get / 2> /dev/null | grep -q 'ro=true'; then cat <<- END diff --git a/arkdep-build.d/test-arkanelinux-pantheon/overlay/post_bootstrap/usr/abin/pacman b/arkdep-build.d/test-arkanelinux-pantheon/overlay/post_bootstrap/usr/abin/pacman index 6ee0f17..0e7a899 100755 --- a/arkdep-build.d/test-arkanelinux-pantheon/overlay/post_bootstrap/usr/abin/pacman +++ b/arkdep-build.d/test-arkanelinux-pantheon/overlay/post_bootstrap/usr/abin/pacman @@ -1,13 +1,13 @@ #!/usr/bin/env bash -# Elevate permissions to root -[[ $EUID -eq 0 ]] || exec sudo bash $0 $@ - if [[ $@ =~ (-r|--root) ]] || [[ $@ == "-Q"* ]] || [[ $@ == "-F"* ]] || [[ $LD_LIBRARY_PATH =~ (libfakeroot) ]]; then no_check=1 fi if [[ ! $no_check ]]; then + # Elevate permissions to root + [[ $EUID -eq 0 ]] || exec sudo bash $0 $@ + # Check if the disk is ro'ed using subvolume properties if btrfs property get / 2> /dev/null | grep -q 'ro=true'; then cat <<- END