Skip to content

Commit 1ba69d1

Browse files
committed
install: Add /usr/share/doc/bootc/baseimage
This directory will contain expected files in the base image. That said, I may change the container import path to auto-create at least the sysroot dir and symlink at some point and these can just be dropped. And for that matter after ostreedev/ostree@9a0acd7 "libostree/deploy: enable composefs by default" we can likely just drop the prepare-root bit too. But for now this is needed. Motivated by improving base image generation from https://gitlab.com/fedora/bootc/tracker/-/issues/32 Signed-off-by: Colin Walters <[email protected]>
1 parent 7bea5ef commit 1ba69d1

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ install:
2525
fi; \
2626
done
2727
install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer systemd/*.path systemd/*.target
28+
install -D -m 0644 -t $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/usr/lib/ostree/ baseimage/base/usr/lib/ostree/prepare-root.conf
29+
install -d -m 755 $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/sysroot
30+
cp -PfT baseimage/base/ostree $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/ostree
2831

2932
# Run this to also take over the functionality of `ostree container` for example.
3033
# Only needed for OS/distros that have callers invoking `ostree container` and not bootc.

baseimage/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Recommended image content
2+
3+
The subdirectories here are recommended to be installed alongside
4+
bootc in `/usr/share/doc/bootc/baseimage` - they act as reference
5+
sources of content.
6+
7+
- [base](base): At the current time the content here is effectively
8+
a hard requirement. It's not much, just an ostree configuration
9+
enabling composefs, plus the default `sysroot` directory (which
10+
may go away in the future) and the `ostree` symlink into `sysroot`.

baseimage/base/ostree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sysroot/ostree

baseimage/base/sysroot/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# A trick to keep an empty directory in git
2+
*
3+
!.gitignore
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[composefs]
2+
enabled = true

contrib/packaging/bootc.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ BuildRequires: libzstd-devel
3232
%{_prefix}/lib/systemd/system-generators/*
3333
%{_prefix}/lib/bootc
3434
%{_unitdir}/*
35+
%{_docdir}/bootc/*
3536
%{_mandir}/man*/bootc*
3637

3738
%prep

0 commit comments

Comments
 (0)