Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation script snippet 'createBootedSystemSymlink' failed #513

Closed
Prince213 opened this issue Jul 8, 2024 · 1 comment · Fixed by #514
Closed

Activation script snippet 'createBootedSystemSymlink' failed #513

Prince213 opened this issue Jul 8, 2024 · 1 comment · Fixed by #514
Labels
bug Something isn't working

Comments

@Prince213
Copy link
Contributor

Prince213 commented Jul 8, 2024

Bug description

When building tarball a error occurred.

setting up /run/booted-system...
ln: failed to create symbolic link '/run/booted-system': No such file or directory
Activation script snippet 'createBootedSystemSymlink' failed (1)

Related: #325.

To Reproduce

Steps to reproduce the behavior:

Get https://github.com/nix-community/NixOS-WSL/releases/download/2405.5.4/nixos-wsl.tar.gz, then

> wsl --import nixos-wsl "$env:USERPROFILE\nixos-wsl" nixos-wsl.tar.gz
> wsl -d nixos-wsl
$ sudo nix-channel --update
$ sudo nixos-rebuild switch
> wsl -t nixos-wsl
> wsl -d nixos-wsl
$ nix shell --extra-experimental-features "nix-command flakes" github:NixOS/nixpkgs/nixos-unstable#git
$ sudo nix run --extra-experimental-features "nix-command flakes" github:nix-community/NixOS-WSL#nixosConfigurations.default.config.system.build.tarballBuilder

Logs

$ sudo nix run --extra-experimental-features "nix-command flakes" github:nix-community/NixOS-WSL#nixosConfigurations.default.config.system.build.tarballBuilder
[NixOS-WSL] Installing...
copying channel...
these 521 paths will be fetched (0.00 MiB download, 1531.58 MiB unpacked):
  /nix/store/zigblcx2ags6hnsjfcacr7z32xq8xxgm-0z4i8wyg3ymm7kkb1gk2wyh08x230c6z-source
  ...
  /nix/store/xhmpzv6qnamn1wwwrwzws6w9wpazs4yw-zstd-1.5.6-man
copying path '/nix/store/9dij3pl4dkdxmxhasjw1pa9hzqv4rjlp-glibc-locales-2.39-52' to 'local'...
...
copying path '/nix/store/hs4n4dv9jy42h900nr301pczixxl6fmz-nixos-system-nixos-24.05.20240702.706eef5' to 'local'...
installing the boot loader...
setting up /run/booted-system...
ln: failed to create symbolic link '/run/booted-system': No such file or directory
Activation script snippet 'createBootedSystemSymlink' failed (1)
setting up /etc...
setting up /bin...
setting up /bin/login...
setting up /sbin/init shim...
installation finished!
[NixOS-WSL] Adding channel...
setting up /run/booted-system...
setting up /etc...
setting up /bin...
setting up /bin/login...
setting up /sbin/init shim...
[NixOS-WSL] Adding default config...
[NixOS-WSL] Compressing...

WSL version

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3737
@Prince213 Prince213 added the bug Something isn't working label Jul 8, 2024
@SuperSandro2000
Copy link
Member

#514

@nzbr nzbr closed this as completed in #514 Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants