sudo commands

This commit is contained in:
Julian Wefers
2026-05-31 14:28:35 +02:00
parent 68e798b881
commit 5c72c38e9f
+8 -8
View File
@@ -4,7 +4,7 @@ TAG="latest"
build() { build() {
read -srp "Desired password for user 'backup' in resulting container image: " password read -srp "Desired password for user 'backup' in resulting container image: " password
# ABSOLUTELY DO NOT USE --squash, as ostree NEEDS the layers # ABSOLUTELY DO NOT USE --squash, as ostree NEEDS the layers
buildah build \ sudo buildah build \
-t ${REPO}:${TAG} \ -t ${REPO}:${TAG} \
--build-arg PASSWORD="${password}" \ --build-arg PASSWORD="${password}" \
--pull \ --pull \
@@ -13,8 +13,8 @@ build() {
. .
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
buildah login gitea.wefers.page -u julian -p 278b81490079574229dce45b66b726d2ae7e83c0 sudo buildah login gitea.wefers.page -u julian -p 278b81490079574229dce45b66b726d2ae7e83c0
buildah push \ sudo buildah push \
--compression-format zstd:chunked \ --compression-format zstd:chunked \
"${REPO}:${TAG}" "${REPO}:${TAG}"
fi fi
@@ -26,7 +26,7 @@ mkImage() {
# echo "current partitions:" # echo "current partitions:"
# lsblk # lsblk
# read -p "target USB stick device to write image to: /dev/" dev # read -p "target USB stick device to write image to: /dev/" dev
podman run \ sudo podman run \
--rm \ --rm \
-it \ -it \
--privileged \ --privileged \
@@ -35,14 +35,14 @@ mkImage() {
-v ./config.toml:/config.toml:ro \ -v ./config.toml:/config.toml:ro \
-v ./output:/output \ -v ./output:/output \
-v /etc/containers/storage.conf:/etc/containers/storage.conf \ -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 \ quay.io/centos-bootc/bootc-image-builder:latest \
--in-vm \
--type anaconda-iso \ --type anaconda-iso \
--use-librepo=True \ --use-librepo=true \
--rootfs ex4 \ --rootfs ext4 \
${REPO}:${TAG} ${REPO}:${TAG}
# --in-vm \
# sudo dd if=output/bootiso/install.iso of=/dev/${dev} bs=4M # sudo dd if=output/bootiso/install.iso of=/dev/${dev} bs=4M
} }