Skip to content

Commit

Permalink
hotfix: failed to start if binfmt_misc was not mounted (first launch …
Browse files Browse the repository at this point in the history
…with installer)
  • Loading branch information
nzbr committed Mar 30, 2022
1 parent e8645a3 commit 47ab671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syschdemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pkgs.substituteAll {
fsPackagesPath = lib.makeBinPath config.system.fsPackages;

systemdWrapper = pkgs.writeShellScript "systemd-wrapper.sh" ''
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc || true
exec systemd
'';
}
2 changes: 1 addition & 1 deletion syschdemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ ! -e "/run/current-system" ]; then
fi

if [ ! -e "/run/systemd.pid" ]; then
@wrapperDir@/umount /proc/sys/fs/binfmt_misc
@wrapperDir@/umount /proc/sys/fs/binfmt_misc || true

PATH=/run/current-system/systemd/lib/systemd:@fsPackagesPath@ \
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \
Expand Down

0 comments on commit 47ab671

Please sign in to comment.