From 60d4d0cb6641e1ca3824aa9a803d40391c3103bb Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 15 Feb 2024 13:21:46 -0500 Subject: [PATCH] Enable composefs for 41+ We really want to aim to eventually enable this by default, let's test things out in rawhide. A thing that this is known to break is the "chattr -i" hack for new toplevel dirs (xref https://github.com/coreos/rpm-ostree/issues/337 ) Basically if you want that, you either need to make a derived image, or enable transient root. --- manifests/composefs.yaml | 3 +++ manifests/fedora-coreos.yaml | 2 ++ overlay.d/08composefs/README.md | 2 ++ overlay.d/08composefs/usr/lib/ostree/prepare-root.conf | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 manifests/composefs.yaml create mode 100644 overlay.d/08composefs/README.md create mode 100644 overlay.d/08composefs/usr/lib/ostree/prepare-root.conf diff --git a/manifests/composefs.yaml b/manifests/composefs.yaml new file mode 100644 index 000000000..d575c1349 --- /dev/null +++ b/manifests/composefs.yaml @@ -0,0 +1,3 @@ +# Enable composefs by default. +ostree-layers: + - overlay/08composefs diff --git a/manifests/fedora-coreos.yaml b/manifests/fedora-coreos.yaml index 0be3297d2..ab36825bf 100644 --- a/manifests/fedora-coreos.yaml +++ b/manifests/fedora-coreos.yaml @@ -46,6 +46,8 @@ conditional-include: # Wifi firmwares will be dropped in F41 - if: releasever < 41 include: wifi-firmwares.yaml + - if: stream == "rawhide" + include: composefs.yaml ostree-layers: - overlay/15fcos diff --git a/overlay.d/08composefs/README.md b/overlay.d/08composefs/README.md new file mode 100644 index 000000000..487f8be8f --- /dev/null +++ b/overlay.d/08composefs/README.md @@ -0,0 +1,2 @@ +Enable composefs by default; more in https://ostreedev.github.io/ostree/composefs/ +For now rawhide only. diff --git a/overlay.d/08composefs/usr/lib/ostree/prepare-root.conf b/overlay.d/08composefs/usr/lib/ostree/prepare-root.conf new file mode 100644 index 000000000..2faae22bc --- /dev/null +++ b/overlay.d/08composefs/usr/lib/ostree/prepare-root.conf @@ -0,0 +1,2 @@ +[composefs] +enabled = true