summaryrefslogtreecommitdiff
path: root/ostree_commit.sh
diff options
context:
space:
mode:
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"