summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-08-03 14:16:10 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-08-03 14:16:10 +0200
commit0f6826b93feb0c72a3c325a67ea0602db91d2c6b (patch)
treeec3f8caf2e4a172c1095323a8bc0e636256b6f95
parenta5892e63b47b567d61a6c0c3757cbcade1181a7c (diff)
hello: build without root
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--hello/PKGBUILD6
1 files changed, 2 insertions, 4 deletions
diff --git a/hello/PKGBUILD b/hello/PKGBUILD
index e6a3fa8..3e23f95 100644
--- a/hello/PKGBUILD
+++ b/hello/PKGBUILD
@@ -32,10 +32,8 @@ build(){
./configure --prefix=/ LDFLAGS=-static
make
- sudo podman build --tag=hello .
- sudo podman save -o hello.tar hello
- sudo chmod 777 hello.tar
- sudo chown "$(id -u):$(id -g)" hello.tar
+ buildah unshare podman build --tag=hello .
+ buildah unshare podman save -o hello.tar hello
xz -f -9e --verbose -T 0 hello.tar
}