Skip to content

Installer fails on Fedora Silverblue (Bluefin in my case) #1771

@sebaszv

Description

@sebaszv

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `start_systemd_unit` errored
   3: Failed to execute command `"systemctl" "start" "nix.mount"`
      stdout: 
      stderr: Failed to start nix.mount: Unit nix-directory.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
      See system logs and 'systemctl status nix.mount' for details.

      exited with status code: 1

Metadata

key value
version 3.16.0
os linux
arch x86_64

Here is everything:

$ curl -fsSL https://install.determinate.systems/nix | sh -s -- install

info: downloading the Determinate Nix Installer
 INFO nix-installer v3.16.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
[sudo] contraseña para ulizv: 
 INFO nix-installer v3.16.0
Nix install plan (v3.16.0)
Planner: ostree (with default settings)

Planned actions:
* Run `systemctl daemon-reload`
* Create directory `/var/home/nix`
* Create or overwrite file `/etc/systemd/system/nix-directory.service`
* Create or overwrite file `/etc/systemd/system/nix.mount`
* Create or overwrite file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
* Enable (and start) the systemd unit `nix.mount`
* Install Determinate Nixd
* Extract the bundled Nix (originally from /nix/store/s1v6f2nnszx6wr2r8wdcchfw4vp0aamp-nix-binary-tarball-3.16.0/nix-3.16.0-x86_64-linux.tar.xz) to `/nix/temp-install-dir`
* Create a directory tree in `/nix`
* Synchronize /nix/var ownership
* Move the downloaded Nix into `/nix`
* Synchronize /nix/store ownership
* Create build users (UID 30001-30032) and group (GID 30000)
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Configure the shell profiles
* Install an SELinux Policy for Nix
* Configure the Determinate Nix daemon
* Enable (and start) the systemd unit `ensure-symlinked-units-resolve.service`
* Remove directory `/nix/temp-install-dir`
* Run `systemctl daemon-reload`


Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Step: Run `systemctl daemon-reload`
 INFO Step: Create directory `/var/home/nix`
 INFO Step: Create or overwrite file `/etc/systemd/system/nix-directory.service`
 INFO Step: Create or overwrite file `/etc/systemd/system/nix.mount`
 INFO Step: Create or overwrite file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
 INFO Step: Enable (and start) the systemd unit `nix.mount`
ERROR Error saving receipt: RecordingReceipt("/nix", Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" })
ERROR 
   0: \x1b[91mInstall failure\x1b[0m
   1: \x1b[91mError executing action\x1b[0m
   2: \x1b[91mAction `start_systemd_unit` errored\x1b[0m
   3: \x1b[91mFailed to execute command `"systemctl" "start" "nix.mount"`
      stdout: 
      stderr: Failed to start nix.mount: Unit nix-directory.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
      See system logs and 'systemctl status nix.mount' for details.

      exited with status code: 1
      \x1b[0m

Location:
   \x1b[35m/build/nix-installer-source/src/cli/subcommand/install/mod.rs\x1b[0m:\x1b[35m234\x1b[0m

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Install+failure%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60start_systemd_unit%60+errored%0A+++3%3A+Failed+to+execute+command+%60%22systemctl%22+%22start%22+%22nix.mount%22%60%0A++++++stdout%3A+%0A++++++stderr%3A+Failed+to+start+nix.mount%3A+Unit+nix-directory.service+failed+to+load+properly%2C+please+adjust%2Fcorrect+and+reload+service+manager%3A+Device+or+resource+busy%0A++++++See+system+logs+and+%27systemctl+status+nix.mount%27+for+details.%0A%0A++++++exited+with+status+code%3A+1%0A%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C3.16.0%7C%0A%7C**os**%7Clinux%7C%0A%7C**arch**%7Cx86_64%7C%0A
Installation failure, offering to revert...
Nix uninstall plan (v3.16.0)

Planner: ostree (with default settings)

Planned actions:
* Remove the directory `/etc/tmpfiles.d` if no other contents exists
* Disable (and stop) the systemd unit `nix.mount`
* Delete file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
* Delete file `/etc/systemd/system/nix.mount`
* Delete file `/etc/systemd/system/nix-directory.service`
* Remove the directory `/var/home/nix`
* Run `systemctl daemon-reload`


Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Revert: Run `systemctl daemon-reload`
 INFO Revert: Remove directory `/nix/temp-install-dir`
 INFO Revert: Enable (and start) the systemd unit `ensure-symlinked-units-resolve.service`
 INFO Revert: Configure the Determinate Nix daemon
 INFO Revert: Create directory `/etc/tmpfiles.d`
 INFO Revert: Install an SELinux Policy for Nix
 INFO Revert: Configure Nix
 INFO Revert: Create build users (UID 30001-30032) and group (GID 30000)
 INFO Revert: Provision Nix
 INFO Revert: Install Determinate Nixd
 INFO Revert: Enable (and start) the systemd unit `nix.mount`
 INFO Revert: Create or overwrite file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
 INFO Revert: Create or overwrite file `/etc/systemd/system/nix.mount`
 INFO Revert: Create or overwrite file `/etc/systemd/system/nix-directory.service`
 INFO Revert: Create directory `/var/home/nix`
 INFO Revert: Run `systemctl daemon-reload`
Partial Nix install was uninstalled successfully!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions