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 \