This directory contains Flatpak preinstall configuration files that will be copied into your custom image at /etc/flatpak/preinstall.d/.
Flatpak preinstall is a feature that allows system administrators to define Flatpak applications that should be installed on first boot. These files are read by the Flatpak system integration and automatically install the specified applications.
- During Build: Files in this directory are copied to
/etc/flatpak/preinstall.d/in the image - On First Boot: After user setup completes, the system reads these files and installs the specified Flatpaks
- User Experience: Applications appear automatically after first login
Flatpaks are NOT included in the ISO or container image. They are downloaded and installed after:
- User completes initial system setup
- Network connection is established
- First boot process runs
flatpak preinstall
This means:
- The ISO remains small and bootable offline
- Users need an internet connection after installation
- First boot may take longer while Flatpaks download and install
- This is NOT an offline ISO with pre-embedded applications
Each file uses the INI format with [Flatpak Preinstall NAME] sections:
[Flatpak Preinstall org.mozilla.firefox]
Branch=stable
[Flatpak Preinstall org.gnome.Calculator]
Branch=stableKeys:
Install- (boolean) Whether to install (default: true)Branch- (string) Branch name (default: "master", commonly "stable")IsRuntime- (boolean) Whether this is a runtime (default: false for apps)CollectionID- (string) Collection ID of the remote, if any
See: https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-preinstall
- Edit
default.preinstallor create new.preinstallfiles in this directory - Add Flatpak references in INI format with
[Flatpak Preinstall NAME]sections - Build your image - the files will be copied to
/etc/flatpak/preinstall.d/ - After user setup completes, Flatpaks will be automatically installed
Example Files in this directory:
default.preinstall- Core applications from Bluefin
To find the ID of a Flatpak:
flatpak search app-nameOr browse Flathub: https://flathub.org/
Edit the existing file or create new ones:
default.preinstall- Modify the default application list- Create new files:
development.preinstall- Development toolsgaming.preinstall- Gaming applicationsmedia.preinstall- Media editing tools
Each new .preinstall file will be automatically copied during the build process. See build/10-build.sh for how files are copied.
- Files must use the
.preinstallextension - Comments can be added with
# - Empty lines are ignored
- Flatpaks are downloaded from Flathub on first boot - not embedded in the image
- Internet connection required after installation for Flatpaks to install
- Installation happens automatically after user setup completes
- Users can still uninstall these applications if desired
- First boot will take longer while Flatpaks are being installed