Skip to content

Commit

Permalink
Create /run/booted-system symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored and nzbr committed Jul 5, 2024
1 parent ae1ed75 commit 4df5fef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/systemd/native/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ with lib; {
};

system.activationScripts = {
createBootedSystemSymlink = ''
echo "setting up /run/booted-system..."
[[ -e /run/booted-system ]] || ln -sfn "$(readlink -f "$systemConfig")" /run/booted-system
'';
shimSystemd = stringAfter [ ] ''
echo "setting up /sbin/init shim..."
mkdir -p /sbin
Expand Down

0 comments on commit 4df5fef

Please sign in to comment.