]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Unset $CONFIG in prepare scripts
authorSeptatrix <24257556+Septatrix@users.noreply.github.com>
Mon, 28 Oct 2024 14:56:09 +0000 (15:56 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 28 Oct 2024 15:39:10 +0000 (16:39 +0100)
mkosi.prepare.chroot
mkosi/resources/mkosi-tools/mkosi.prepare.chroot

index ded1f5e2d47832844a2c5d53b7e9403cd8a88759..1749c0914b88a63ca2d5ce79c1f2e564a48db1b2 100755 (executable)
@@ -2,6 +2,10 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 set -e
 
+# Users might set $CONFIG but that influences pacman
+# so we unset it here to avoid any issues.
+unset CONFIG
+
 if [ "$1" = "final" ] && command -v pacman-key; then
     pacman-key --init
     pacman-key --populate archlinux
index 754015efb5467223933a109b6a83d966738e0d17..1749c0914b88a63ca2d5ce79c1f2e564a48db1b2 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 # SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+# Users might set $CONFIG but that influences pacman
+# so we unset it here to avoid any issues.
+unset CONFIG
 
 if [ "$1" = "final" ] && command -v pacman-key; then
     pacman-key --init