From daaf82f3bf666e270236ac7e73e1819fc3cebb0a Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Sun, 22 Sep 2024 20:15:56 +0200 Subject: [PATCH] install: try to seed flatpaks into the installed system --- mkosi.extra/usr/bin/_calamares@subvol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkosi.extra/usr/bin/_calamares@subvol b/mkosi.extra/usr/bin/_calamares@subvol index 349c7ca..a855260 100755 --- a/mkosi.extra/usr/bin/_calamares@subvol +++ b/mkosi.extra/usr/bin/_calamares@subvol @@ -61,3 +61,9 @@ fi blockdev=/dev/$(basename "$(readlink --canonicalize "/sys/class/block/$realdevice/..")") espdev=$(_kdeos-find-esp "$blockdev") mount "$espdev" "$ROOT/efi" + +# Once everything is in place we'll shove some extra data into the overlays. +# We notably don't want to carry flatpaks in the rootfs but for purposes of the image file they must be shipped somehow. +# In the live session they are mounted in place, for the installed system we actually seed /var/lib/flatpak with data. +rm -rf "$ROOT/var/lib/flatpak" +cp -ra /system/@flatpak "$ROOT/var/lib/flatpak"