1 2 3 4 5 6 7 8
#!/bin/bash -xe ROOTFS_DIR=$1 [ ! -d repo ] && \ ostree --repo=repo init ostree --repo=repo commit --branch=rootfs "$ROOTFS_DIR"