Tool for interactive command line environments on Linux
Go to file
Debarshi Ray be2ba6d2e2 build: Call 'systemd-tmpfiles --create' when installing
It's only necessary to call 'systemd-tmpfiles --create' when building
and installing from source on the host operating system.

It's not needed when using a pre-built binary downstream package,
because:

  * When 'meson install' is called as part of building the package,
    that's not when the temporary files need to be created. They need
    to be created when the binary package is later downloaded and
    installed by the user.

  * Downstream tools can sometimes handle it automatically. eg., on
    Fedora, the systemd RPM installs a trigger that tells RPM to call
    'systemd-tmpfiles --create' automatically when a tmpfiles.d snippet
    is installed.

It's also not needed when installing inside a toolbox container because
the files that 'systemd-tmpfiles --create' is supposed to create are
meant to be on the host.

Downstream distributors set the DESTDIR environment variable when
building their packages. Therefore, it's used to detect when a
downstream package is being built.

Unfortunately, environment variables are messy and, generally, Meson
doesn't support accessing them inside its scripts [1]. Therefore, this
adds a spurious build-time dependency on systemd for downstream
distributors. However, that's probably not a big problem because all
supported downstream operating systems are already expected to use
systemd for the tmpfiles.d(5) snippets to work.

[1] https://github.com/mesonbuild/meson/issues/9

https://github.com/containers/toolbox/issues/955
2022-01-10 22:14:01 +01:00
.github ci: Set full path to Containerfile 2022-01-10 13:40:32 +02:00
completion/bash completion/bash: Completely drop flag --very-verbose 2021-06-23 22:53:05 +02:00
data CONTRIBUTING: Custom graphic 2022-01-07 09:34:39 +01:00
doc doc: Document the configuration file 2021-12-17 13:23:37 +01:00
images images: Make locate(1) opt-in by default 2021-12-01 16:21:42 +01:00
playbooks build: Call 'systemd-tmpfiles --create' when installing 2022-01-10 22:14:01 +01:00
profile.d profile.d: Fix the PS1 on Z shell 2021-11-25 19:04:20 +01:00
src cmd: Fix issues raised by Golangci 2022-01-09 17:48:47 +01:00
test/system pkg/utils: Use new UBI toolbox image 2022-01-09 16:46:37 +01:00
.gitignore test/system: Track bats libs as submodules & install them better 2021-07-22 10:23:53 +02:00
.gitmodules test/system: Track bats libs as submodules & install them better 2021-07-22 10:23:53 +02:00
.zuul.yaml .zuul: Style fixes 2022-01-05 02:18:15 +01:00
CODE-OF-CONDUCT.md Add Code of Conduct 2020-02-12 17:12:23 +01:00
CONTRIBUTING.md CONTRIBUTING: Custom graphic 2022-01-07 09:34:39 +01:00
COPYING Rename LICENSE as COPYING 2018-10-19 18:24:23 +02:00
GOALS.md GOALS.md: Cosmetics 2021-01-25 21:13:07 +01:00
NEWS Prepare 0.0.99.3 2021-12-10 03:40:42 +01:00
README.md README.md: Link to the website instead of the code repository 2021-12-08 17:19:47 +01:00
SECURITY.md Add Security Policy 2020-05-13 14:37:08 +02:00
gen-docs-list gen-docs-list: Add newline at end of file 2021-02-08 16:49:58 +01:00
meson.build build: Call 'systemd-tmpfiles --create' when installing 2022-01-10 22:14:01 +01:00
meson_options.txt build: Add an option for the migration path for coreos/toolbox users 2021-12-10 00:35:13 +01:00
meson_post_install.py build: Call 'systemd-tmpfiles --create' when installing 2022-01-10 22:14:01 +01:00
toolbox Add deprecation notices to the POSIX shell Toolbox 2021-02-19 15:40:52 +01:00

README.md

README

Zuul Daily Pipeline

Arch Linux package Fedora package

Toolbox is a tool for Linux operating systems, which allows the use of containerized command line environments. It is built on top of Podman and other standard container technologies from OCI.

This is particularly useful on OSTree based operating systems like Fedora CoreOS and Silverblue. The intention of these systems is to discourage installation of software on the host, and instead install software as (or in) containers — they mostly don't even have package managers like DNF or YUM. This makes it difficult to set up a development environment or install tools for debugging in the usual way.

Toolbox solves this problem by providing a fully mutable container within which one can install their favourite development and debugging tools, editors and SDKs. For example, it's possible to do yum install ansible without affecting the base operating system.

However, this tool doesn't require using an OSTree based system. It works equally well on Fedora Workstation and Server, and that's a useful way to incrementally adopt containerization.

The toolbox environment is based on an OCI image. On Fedora this is the fedora-toolbox image. This image is used to create a toolbox container that seamlessly integrates with the rest of the operating system by providing access to the user's home directory, the Wayland and X11 sockets, networking (including Avahi), removable devices (like USB sticks), systemd journal, SSH agent, D-Bus, ulimits, /dev and the udev database, etc..

Installation & Use

See our guides on installing & getting started with Toolbox and Linux distro support.