fix(build): build image rootful so sudo podman run finds it
This commit is contained in:
+4
-3
@@ -7,9 +7,10 @@ set -euo pipefail
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
# 1. Ensure the build image exists
|
# 1. Ensure the build image exists (rootful — the run step below is rootful,
|
||||||
if ! podman image exists localhost/antergos-build:latest; then
|
# and rootless podman uses a separate image store)
|
||||||
podman build -t antergos-build .
|
if ! sudo podman image exists localhost/antergos-build:latest; then
|
||||||
|
sudo podman build -t antergos-build .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 2. Run the build (privileged, workspace mounted, tmpfs workdir, ISO exported)
|
# 2. Run the build (privileged, workspace mounted, tmpfs workdir, ISO exported)
|
||||||
|
|||||||
Reference in New Issue
Block a user