#824651 ostree: initramfs-tools integration

Package:
ostree
Source:
ostree
Description:
content-addressed filesystem for operating system binaries
Submitter:
Simon McVittie
Date:
2023-03-24 15:03:03 UTC
Severity:
wishlist
Tags:
#824651#5
Date:
2016-05-18 12:23:46 UTC
From:
To:
ostree currently has Dracut integration, to select an OSTree deployment
in the Dracut bootloader. However, Dracut is not Debian's default
initramfs creator. If initramfs-tools has advantages over dracut, it
would be nice to have initramfs-tools hooks that do the same thing as
the current dracut hooks.

(I don't plan to work on this myself: my interest in ostree at the moment
is mostly for xdg-app/flatpak.)

    S

#824651#10
Date:
2023-03-24 14:59:32 UTC
From:
To:
Hi,

I've been successfully experimenting with ostree-ifying debian, using the attached script with initramfs-tools.
It's not particularly polished, and essentially assumes:
- The `systemd-remount-fs.service` unit is masked
- You passed `boot=ostree` on the cmdline, so initramfs-tools sources the script
- That you want to use the `sysroot.readonly=true` option

Ideally the `/usr/lib/ostree/ostree-prepare-root` utility could be used, but I found it easier start experimenting with manually mounting everything.

Perhaps that script is of use to someone.

I'm not sure how much interest there is in building something similar to Fedora Silverblue using Debian, but there are a couple of other things, that would be useful:

- A udeb with just the ostree utility for use in the installer, that would allow building a installer using the existing d-i components.
   I currently use the `copy_exec` function from initramfs-tools to build such a udeb, and while some libraries are already packaged as udeb, ostree has a lot of dependencies, and gpg verification doesn't work.

- Shipping sysuser and tmpfiles for every debian package