From 47ab671f070779a8296672261239d0d890815926 Mon Sep 17 00:00:00 2001 From: nzbr Date: Wed, 30 Mar 2022 23:38:23 +0200 Subject: [PATCH] hotfix: failed to start if binfmt_misc was not mounted (first launch with installer) --- syschdemd.nix | 2 +- syschdemd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syschdemd.nix b/syschdemd.nix index 90648b9b..894f1bdc 100644 --- a/syschdemd.nix +++ b/syschdemd.nix @@ -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 ''; } diff --git a/syschdemd.sh b/syschdemd.sh index 5ab1ec36..e8c7edbd 100644 --- a/syschdemd.sh +++ b/syschdemd.sh @@ -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 \