archlinux: fix pacman.d dropin not activated if pacman.conf does not already contains qubes markers
This commit is contained in:
parent
8ba584dfb0
commit
0159cd6a77
@ -319,11 +319,15 @@ fi
|
|||||||
|
|
||||||
update_finalize() {
|
update_finalize() {
|
||||||
|
|
||||||
# Archlinux specific: Cleanup pre pacman.d qubes marker
|
# Archlinux specific: If marker exists, cleanup text between begin and end marker
|
||||||
QUBES_MARKER="### QUBES CONFIG MARKER ###"
|
QUBES_MARKER="### QUBES CONFIG MARKER ###"
|
||||||
if grep -F -q "$QUBES_MARKER" /etc/pacman.conf; then
|
if grep -F -q "$QUBES_MARKER" /etc/pacman.conf; then
|
||||||
config_prependtomark "/etc/pacman.conf" "# REPOSITORIES" "### QUBES CONFIG END MARKER ###"
|
config_prependtomark "/etc/pacman.conf" "# REPOSITORIES" "### QUBES CONFIG END MARKER ###"
|
||||||
config_cleanupmark "/etc/pacman.conf" "$QUBES_MARKER" "### QUBES CONFIG END MARKER ###"
|
config_cleanupmark "/etc/pacman.conf" "$QUBES_MARKER" "### QUBES CONFIG END MARKER ###"
|
||||||
|
# Else, add qubes config block marker
|
||||||
|
else
|
||||||
|
config_prependtomark "/etc/pacman.conf" "# REPOSITORIES" "$QUBES_MARKER"
|
||||||
|
config_prependtomark "/etc/pacman.conf" "# REPOSITORIES" "### QUBES CONFIG END MARKER ###"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Include /etc/pacman.d drop-in directory
|
# Include /etc/pacman.d drop-in directory
|
||||||
|
Loading…
Reference in New Issue
Block a user