README.md (1430B)
1 # patina-installer 2 3 Sector F Linux's installer: a Patina egui app that the live disc boots straight into (greetd runs it 4 inside `cage`, no desktop). It looks as the [greeter](../greeter/README.md) does, so the way from USB 5 stick to first account is one visual language. Why and how: [ADR-0014](../docs/adr/0014-the-live-disc-boots-straight-into-the-installer.md). 6 7 Screens: **choose the drive** (whole drives only, each with model, size, serial and what is on it; 8 the one the disc booted from, mounted ones, read-only ones and ones under 12 GB are shown but 9 cannot be chosen, with the reason), **confirm** (names the drive, in the error colour), **installing** 10 (the flask of the boot splash, animating, and a progress bar), and **done** or **failed**. 11 12 The app is unprivileged. It runs `pkexec /usr/libexec/patina-install <drive>` (in 13 `../linux/live/`), which checks the drive again before it wipes it. The bar is the bytes the kernel 14 has written to the drive over the size of the system image (`bootc install` prints no percentage), 15 so it is an estimate, held under 100% until the command ends. 16 17 ``` 18 make run # on a mock: three fake drives and a fake install (needs a desktop) 19 make check # tests and clippy 20 make screenshot # docs/screenshot-*.png 21 ``` 22 23 `PATINA_INSTALLER_MOCK=fail` makes the mock install fail part way. In the image it is built by 24 `../linux/installer-build.sh` and goes into the live disc only.