* Building IPFire without root
@ 2026-11-28 14:43 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-11-28 14:43 UTC (permalink / raw)
To: IPFire: Development-List
Hi all,
./make.sh can now be run as a normal user. This is merged into next.
What it means for you
* You can build on a machine where you have no root access, such as a shared build server or a CI runner.
* A failed or killed build can no longer leave mounts behind. There is no clean to run as root, and nothing on the host system is touched.
* Each command now runs isolated from the host. The build can't see your processes, and it can't write outside the build directories.
Setup
The build maps its users (root, nobody and so on) into a range of subordinate UIDs and GIDs that belong to you. Your account needs:
* A range in /etc/subuid and /etc/subgid, for example usermod --add-subuids 100000-165535 --add-subgids 100000-165535 <user>. Most distributions already create this for new users.
* The newuidmap and newgidmap tools (the uidmap package on Debian).
* A kernel that allows unprivileged user namespaces.
make.sh checks all of this and tells you what is missing. Building as root still works, but now prints a warning.
Trade-offs
* Every command starts about 0.15 to 0.25 s slower, which is only noticeable when nothing needs rebuilding.
* Files from a non-root build belong to your subordinate IDs, so rm -rf on the build directory fails. Use ./make.sh clean.
I built the toolchain and a full x86_64 build this way, and the resulting image boots and installs in QEMU. Other architectures are untested.
Feedback welcome, especially from other architectures and distributions.
Best,
-Michael
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 14:43 Building IPFire without root Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox