Skip to content

Commit debd738

Browse files
authored
Merge pull request #1018 from jmarrero/baseimage-kernel
baseimage: Add kernel-install integration
2 parents de43563 + d603e9e commit debd738

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ install:
3232
cp -PfT baseimage/base/ostree $(DESTDIR)/$(prefix)/share/doc/bootc/baseimage/base/ostree
3333
# Ensure we've cleaned out any possibly older files
3434
rm -vrf $(DESTDIR)$(prefix)/share/doc/bootc/baseimage/dracut
35+
rm -vrf $(DESTDIR)$(prefix)/share/doc/bootc/baseimage/systemd
36+
# Copy dracut and systemd config files
3537
cp -Prf baseimage/dracut $(DESTDIR)$(prefix)/share/doc/bootc/baseimage/dracut
38+
cp -Prf baseimage/systemd $(DESTDIR)$(prefix)/share/doc/bootc/baseimage/systemd
3639

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

baseimage/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ sources of content.
1010
may go away in the future) and the `ostree` symlink into `sysroot`.
1111
- [dracut](dracut): Default/basic dracut configuration; at the current
1212
time this basically just enables ostree in the initramfs.
13+
- [systemd](systemd): Optional configuration for systemd, currently
14+
this has configuration for kernel-install enabling rpm-ostree integration.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# kernel-install will not try to run dracut and allow rpm-ostree to
2+
# take over. Rpm-ostree will use this to know that it is responsible
3+
# to run dracut and ensure that there is only one kernel in the image
4+
layout=ostree
5+

0 commit comments

Comments
 (0)