From 5c72c38e9f13ba6e99ae03ca5b126b6875396250 Mon Sep 17 00:00:00 2001 From: Julian Wefers Date: Sun, 31 May 2026 14:28:35 +0200 Subject: [PATCH] sudo commands --- commands.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/commands.sh b/commands.sh index bd0da23..c1dd566 100755 --- a/commands.sh +++ b/commands.sh @@ -4,7 +4,7 @@ TAG="latest" build() { read -srp "Desired password for user 'backup' in resulting container image: " password # ABSOLUTELY DO NOT USE --squash, as ostree NEEDS the layers - buildah build \ + sudo buildah build \ -t ${REPO}:${TAG} \ --build-arg PASSWORD="${password}" \ --pull \ @@ -13,8 +13,8 @@ build() { . if [ $? -eq 0 ]; then - buildah login gitea.wefers.page -u julian -p 278b81490079574229dce45b66b726d2ae7e83c0 - buildah push \ + sudo buildah login gitea.wefers.page -u julian -p 278b81490079574229dce45b66b726d2ae7e83c0 + sudo buildah push \ --compression-format zstd:chunked \ "${REPO}:${TAG}" fi @@ -26,7 +26,7 @@ mkImage() { # echo "current partitions:" # lsblk # read -p "target USB stick device to write image to: /dev/" dev - podman run \ + sudo podman run \ --rm \ -it \ --privileged \ @@ -35,14 +35,14 @@ mkImage() { -v ./config.toml:/config.toml:ro \ -v ./output:/output \ -v /etc/containers/storage.conf:/etc/containers/storage.conf \ - -v ~/.local/share/containers/storage:/var/lib/containers/storage \ + -v /var/lib/containers/storage:/var/lib/containers/storage \ quay.io/centos-bootc/bootc-image-builder:latest \ - --in-vm \ --type anaconda-iso \ - --use-librepo=True \ - --rootfs ex4 \ + --use-librepo=true \ + --rootfs ext4 \ ${REPO}:${TAG} + # --in-vm \ # sudo dd if=output/bootiso/install.iso of=/dev/${dev} bs=4M }