diff --git a/Makefile b/Makefile index 1a96f63a..180926ea 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ install: fi; \ done install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer + install -D -m 0644 -t $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/usr/lib/ostree/prepare-root.conf baseimage/base/usr/lib/ostree/prepare-root.conf + install -d -m 755 $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/sysroot + cp -PfT baseimage/base/ostree $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/ostree # Run this to also take over the functionality of `ostree container` for example. # Only needed for OS/distros that have callers invoking `ostree container` and not bootc. diff --git a/baseimage/README.md b/baseimage/README.md new file mode 100644 index 00000000..1a759763 --- /dev/null +++ b/baseimage/README.md @@ -0,0 +1,10 @@ +# Recommended image content + +The subdirectories here are recommended to be installed alongside +bootc in `/usr/share/doc/bootc/baseimage` - they act as reference +sources of content. + +- [base](base): At the current time the content here is effectively + a hard requirement. It's not much, just an ostree configuration + enabling composefs, plus the default `sysroot` directory (which + may go away in the future) and the `ostree` symlink into `sysroot`. diff --git a/baseimage/base/ostree b/baseimage/base/ostree new file mode 120000 index 00000000..99bd5a25 --- /dev/null +++ b/baseimage/base/ostree @@ -0,0 +1 @@ +sysroot/ostree \ No newline at end of file diff --git a/baseimage/base/usr/lib/ostree/prepare-root.conf b/baseimage/base/usr/lib/ostree/prepare-root.conf new file mode 100644 index 00000000..2faae22b --- /dev/null +++ b/baseimage/base/usr/lib/ostree/prepare-root.conf @@ -0,0 +1,2 @@ +[composefs] +enabled = true