summaryrefslogtreecommitdiff
path: root/ostree_commit.sh
diff options
context:
space:
mode:
authorPhilip J Freeman <elektron@halo.nu>2025-05-04 18:55:05 -0700
committerPhilip J Freeman <elektron@halo.nu>2025-05-04 18:55:05 -0700
commit5392080129b1093f36533e47c155f618c283ea57 (patch)
treedcb566ebab86bc1ba13f3725e7a4fc79a607cfd0 /ostree_commit.sh
initial commit; demo ostree delta
Diffstat (limited to 'ostree_commit.sh')
-rwxr-xr-xostree_commit.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ostree_commit.sh b/ostree_commit.sh
new file mode 100755
index 0000000..23a04e0
--- /dev/null
+++ b/ostree_commit.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -xe
+
+ROOTFS_DIR=$1
+
+[ ! -d repo ] && \
+ ostree --repo=repo init
+
+ostree --repo=repo commit --branch=rootfs "$ROOTFS_DIR"