WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 47ab671

Browse files
committed
hotfix: failed to start if binfmt_misc was not mounted (first launch with installer)
1 parent e8645a3 commit 47ab671

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syschdemd.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pkgs.substituteAll {
1414
fsPackagesPath = lib.makeBinPath config.system.fsPackages;
1515

1616
systemdWrapper = pkgs.writeShellScript "systemd-wrapper.sh" ''
17-
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
17+
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc || true
1818
exec systemd
1919
'';
2020
}

syschdemd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ ! -e "/run/current-system" ]; then
1616
fi
1717

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

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

0 commit comments

Comments
 (0)