README.md (4313B)
1 # Sector F Linux 2 3 Sector F Linux is a desktop operating system from Sector F Labs: Fedora's bootc image with the [Patina](https://github.com/Sector-F-Labs/patina) desktop, on Btrfs. One OS for the laptop and the workstation, with Fedora's current kernel and packages. 4 5 It is built on [rpm-ostree](https://coreos.github.io/rpm-ostree/) and [OSTree](https://ostreedev.github.io/ostree/), the technology under Fedora Silverblue, CoreOS and [bootc](https://bootc-dev.github.io/bootc/) images: the system is built once from a Containerfile and shipped whole as an image, and `/usr` is read-only. An update stages the next image beside the running one and boots into it at the next restart, and a rollback is booting the previous one. Updates come from `ghcr.io/sector-f-labs/sector-f-linux`, and Software Update, an app in the OS, runs them. 6 7 ``` 8 make help the targets 9 make build build the desktop and the image (local only) 10 make publish push the image to ghcr.io, the only thing that leaves this machine 11 make iso build the installer ISO from the published image 12 make disk install the image onto a fresh disk file for the test VM 13 make run boot the VM (installs the image first if there is no disk) 14 ``` 15 16 ## What we built for it 17 18 Three small Patina apps sit around the image, each with a mock mode that makes the screenshots below (`make screenshot` in its folder). 19 20 **The installer** ([installer/](installer/)) runs from the live ISO: pick a drive, confirm, wait for the flask. 21 22 <p align="center"><img src="installer/docs/flask.gif" alt="The flask while installing" width="240"></p> 23 24 | Choose a drive | Confirm | Installing | Done | 25 |---|---|---|---| 26 |  |  |  |  | 27 28 **The greeter and first-run setup** ([greeter/](greeter/)) is the login screen, and on a new machine the wizard that comes first: Wi-Fi, clock, computer name, then your account. 29 30 | Setup: Wi-Fi | Setup: account | Login | Wrong password | 31 |---|---|---|---| 32 |  |  |  |  | 33 34 **The updater** ([updater/](updater/)) is Software Update: it follows the image on `ghcr.io/sector-f-labs/sector-f-linux`, stages the next one beside the running system and switches at the next restart. 35 36 | Update available | Switching | 37 |---|---| 38 |  |  | 39 40 ## Principles 41 42 - **The system can always go back.** An update is a new image, staged beside the running one and booted at the next restart, with the previous one kept for rollback ([`rpm-ostree rollback`](https://coreos.github.io/rpm-ostree/administrator-handbook/)). `/usr` is read-only. 43 - **Stock Fedora, nothing to maintain.** The base provides the kernel and the packages; we choose and arrange them in a Containerfile. Hardware drivers and services go in the image. 44 - **What users add stays out of the way.** Layered packages ([`rpm-ostree install`](https://coreos.github.io/rpm-ostree/administrator-handbook/#package-layering)) survive updates, apps can be Flatpaks or containers, and `~/Apps/Name.app` is a folder with an `app.toml` saying how to run it: copy it in to install, delete it to uninstall, never touch the system (ADR-0002, ADR-0005). 45 - **Update with [`rpm-ostree upgrade`](https://coreos.github.io/rpm-ostree/administrator-handbook/).** `bootc upgrade` refuses once a package is layered; rpm-ostree upgrades the image and keeps the layer (ADR-0009). 46 - **Opinionated.** One desktop (Patina), one filesystem (Btrfs). 47 48 ## History 49 50 The project was called Patina OS, and the repository, image and volume names inside still say `patina-os` in places until a rename pass. It began as a search for the base that makes the simplest image-based OS for the Patina desktop: FreeBSD and Ubuntu on ZFS were tried first, and Fedora's bootc image on Btrfs won once ZFS was dropped (ADR-0009). [docs/comparison.md](docs/comparison.md) and [docs/adr](docs/adr) keep the record, and [docs/notes.md](docs/notes.md) the research behind it. 51 52 ## License 53 54 GPL-2.0, see [LICENSE](LICENSE).