• Stars
    star
    203
  • Rank 192,890 (Top 4 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸͺ¨ A Pantheon experience for rpm-ostree

Screenshot of Sodalite

Sodalite

Sodalite is an immutable desktop OS built with rpm-ostree and on-top of Fedora β€” similar to Fedora Silverblue β€” making use of the Pantheon desktop, sticking closely to the ethos and workflow perpetrated by elementary. A work-in-progress but entirely usable as a production desktop.

πŸŽ‰ Quickstart

Know what you're in for? Here goes:

  1. Install an rpm-ostree-based version of Fedora, such as Fedora Silverblue, or use an already-existing install
  2. Fire up a terminal and issue these commands:
    • sudo ostree remote add --if-not-exists sodalite https://ostree.sodalite.rocks --no-gpg-verify
    • sudo ostree pull sodalite:sodalite/current/x86_64/desktop
    • sudo rpm-ostree rebase sodalite:sodalite/current/x86_64/desktop
  3. Stick the kettle on and make yourself a cuppa. It'll take a while
  4. Reboot when prompted. Use it, enjoy it, make something cool with it, (try to) break it β€” submit a ticket if you do!

Updating

Performing a system update can be done by either:

  • Running sudo rpm-ostree upgrade in a shell
  • Opening Software, selecting Updates from the headerbar, and pressing Update All
    • As Software runs in the background and periodically checks for updates, you may also receive a notification of a new update; clicking on this opens the appropriate page
    • An update for the OS may take a while to appear in Software (which will appear as "Operating System Updates"), so the above method is preferred

Reboot after either method has finished. You can verify the version installed by opening System Settings and navigating to System βž” Operating System: the version proceeds the word "Sodalite"

If something breaks, you can rollback by running sudo rpm-ostree rollback at a terminal. Remember to also create a new issue if appropriate!

Update Schedule

Updates are built on the build server commencing 6:00 GMT/Β±0 (22:00 PT/-8) every Wednesday and Saturday.

"Long-term" Branches

If you chose to use a "long-term" branch (see Branches below), you will need to rebase whenever the Sodalite version reaches end-of-life. This can be done with sudo rpm-ostree rebase sodalite:sodalite/<version>/<arch>/<edition>, where <version> is the version you're wanting to rebase to and other values are your current values.

It's vital you carry out this process as updates stop the day the base version reaches end-of-life (at the same time as the base Fedora Linux version) and you will be left without updates to vital system components.

Branches

To allow for several versions to co-exist and be developed in tandem with each other, Sodalite β€” like any other rpm-ostree distro β€” carries a ref to distinguish itself. Where <name>/<version>/<arch>/<edition>, the format and possible values are as follows:

  • <name>: Name of the branch; always sodalite
  • <channel>: Channel of the branch. Possible values:
    • current: Current stable release (currently 4.1, based on Fedora Linux 37)
    • long-<version>: "Long-term" releases to stay with a specific version
      • 4: 4.x, based on Fedora Linux 37. Reaches end-of-life on 14-Nov-2023 (2023-11-14)
    • next: Upcoming release candidates. Potentially broken!
    • devel: Current development code (on main). Do not use on production systems!
  • <arch>: Architecture of the branch. Possible values:
  • <edition>: Edition (or variant) of the branch: Possible values:
    • desktop: Standard Pantheon desktop
    • desktop-budgie: Alternate Budgie desktop
    • desktop-deepin: Alternate Deepin desktop
    • desktop-gnome: Alternate GNOME desktop

As mentioned above, most users will want sodalite/current/x86_64/desktop.

Available Branches

Possible combinations built on the OSTree remote (ostree.sodalite.rocks) are as follows:

Name Version(s) Arch.(s) Edition(s)
sodalite current x86_64 desktop
sodalite long-4 x86_64 desktop
sodalite next x86_64 desktop
sodalite devel x86_64 desktop
desktop-deepin
desktop-gnome

For example, sodalite/current/x86_64/desktop exists on the build server and can be pulled, but sodalite/long-5/x86_64/desktop-gnome does not.

Versioning

(Todo)


πŸ—οΈ Building

1. Prerequisites

Software

  • Fedora Linux (or other Fedora-based/compatible distros)
  • rpm-ostree
    • On most Fedora-based distros, this can be installed with dnf install rpm-ostree
  • Bash
  • Git LFS
    • As well as including pretty wallpapers, the LFS also includes vital binaries that Sodalite needs to work properly, so don't miss installing this!
    • Unsure if you have LFS support? Tpe git lfs: a help output prints if installed

Environment

  • Permission to sudo
    • rpm-ostree needs superuser access to work: there's no way around this
    • Building in a container, however, is possible and supported: just pass the -c/--container flag to build.sh (mentioned below)
  • >10GiB disk space
    • The repository itself (including submodules) takes up ~300MiB
    • Initial builds will take up ~4GiB, with subsequent builds adding to this
  • Unlimited Internet
    • The build process caches a lot of Fedora packages (around 2.5GiB), so think carefully about doing this on mobile broadband or any other service that imposes a small data allowance on you
  • An rpm-ostree-based distro, such as such as Fedora Silverblue β€” on either a virtual machine, another physical machine, or your current install (careful!) β€” to test builds on
  • A cuppa (optional) β€” this can take a while

2. Getting

git clone https://github.com/sodaliterocks/sodalite.git
cd sodalite
git submodule sync
git submodule update --init --recursive

Future Pulls

When updating in the future, don't forget to update submodules with:

git submodule update --recursive

Do not use git submodule foreach git pull: this blindly updates all submodules to their latest version, not the commit this parent repo has checked out. This is important for some submodules that are checked out at specific tags/commits (such as ./lib/sodaliterocks.firefox).

The ./lib/workstation-ostree-config_f* submodules β€” serving as a basis for Sodalite for its various different Fedora-based versions β€” are removed every so often so make sure you delete them accordingly. For example, when Fedora 36 reaches EoL, ./lib/workstation-ostree-config_f36 will be removed shortly afterwards. You can use git clean -i to do the work for you.

LFS

An LFS submodule is located at ./lfs. It's important to note this is not hosted on GitHub, but Zio Git β€” a server we control β€” as GitHub's LFS allowances are tight (only 1GiB bandwidth and storage).

Any issues regarding the LFS should be submitted to sodaliterocks/sodalite on GitHub. Currently, as Zio Git does not allow for arbitrary sign-ups, PRs cannot be directly submitted.

Usage of GitHub

Unless the world collectively favours GitLab, or anything else, Sodalite will stay on GitHub as it makes everyone's lives easier. Microsoft is just another company; they're not going to hurt you.

3. Building

sudo ./build.sh [-t <edition>] [-w <working-dir>]

See build.sh --help for more options.

This will usually take 10-15 minutes. Remember when I told you to grab a cuppa? Or maybe a cold one?

Arguments
  • <edition> (optional) Edition/variant of Sodalite (defaults to custom)
    • This is any of the sodalite-<edition>.yaml files listed in ./src/treefiles/. Either use sodalite-<edition> or just <edition> as the argument. Currently, there is:
      • desktop: Standard Pantheon desktop
      • desktop-budgie: Alternate Budgie desktop, intended for possible future versions
      • desktop-deepin: Alternate Deepin desktop, intended for possible future versions
      • desktop-gnome: Alternate GNOME desktop, intended for possible future versions
      • custom: See below point
    • sodalite-custom.yaml is a good place to employ your own changes instead of modifying any of the other treefiles
  • <working-dir> (optional) Directory for build output (defaults to ./build)

Additional Notes

Building in a Container

If you have Podman, you can build Sodalite entirely in a container: just use -c/--container. This is in fact how builds are done on the release server! However, this will add an extra few minutes for the build to complete as the Fedora container needs to install packages first.

NTFS/FAT partitions

Build failures are inevitable on drives formatted as NTFS, FAT, or anything other filesystems that do not support Unix-like permissions, as build.sh sets permissions on various objects.

WSL2

On WSL2, do not build to any /mnt/<drive-letter> directories as these will be formatted as NTFS or FAT. Instead, run the build somewhere else on the Linux distro itself (like $HOME or /usr/local/src).

Not using build.sh

Most rpm-ostree distros can be built just be simply doing rpm-ostree compose, but build.sh provided with Sodalite does some extra steps which are required for the post-build script (which will fail without these being ran). It is therefore not recommended to do it this way: any issues building the distro this way will be closed and marked as invalid.

Cleaning Up

Build contents is located at ./build/ (or whatever you set <working-dir> to), which can be deleted to start afresh. Specifically this holds the following files/directories (of which can be individually deleted instead):

  • ./build/repo/ β€” OSTree repository for Sodalite
  • ./build/cache/ β€” Cache for Fedora packages

Unless stopped manually, build.sh will clean itself up whenever it exits (on both success and failure). It will correct permissions (to your user) for the ./build/ directory, as well as removing the following files/directories:

  • ./src/sysroot/common/usr/lib/sodalite-buildinfo
  • /var/tmp/rpm-ostree.*/
    • This can get large quickly; watch out if you're not letting build.sh exit

4. Using

(todo)

🀝 Acknowledgements

Individuals

Past Individuals

These fine folks' work is no longer included in, or relevant to, Sodalite, but they're still worth a shout-out!

  • Fabio "decathorpe" Valentini, for maintaining elementary/Pantheon packages on Fedora
  • "Topfi", for their various contributions
  • The amazing photographers/artists of the now excluded wallpapers β€” Karsten WΓΌrth
    • Old wallpapers from old releases are eventually purged to keep /usr/share/backgrounds/default/ from getting too large. No hard feelings!

Teams & Organizations

  • elementary, for building lovely stuff
  • Fyra Labs, for maintaining Terra
    • Due to various packaging issues with Pantheon on Fedora's official repos (see #44), Sodalite was almost doomed after f36+ reached EoL. However, Terra maintains builds of Pantheon and effectively keeps the lights on here!
  • The contributors to workstation-ostree-config, for a solid ground to work from

Miscellaneous

πŸ‘€ See Also


πŸ‡¬πŸ‡§