From: Clayton Craft Date: Sat, 9 Nov 2019 19:50:12 +0000 (-0800) Subject: Use console=pipe in install_grub() when calling nspawn X-Git-Tag: v6~100^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F382%2Fhead;p=thirdparty%2Fmkosi.git Use console=pipe in install_grub() when calling nspawn The mount bind to /dev on the host conflicts with this patch in systemd, which doesn't expect /dev/console to exist: https://github.com/systemd/systemd/commit/3acc84ebd9aebe8cf1771b42644ebbfbecdfaa37 The result is that nspawn dies because it is unable to create a symlink at /dev/console. This adds a new parameter when calling nspawn to prevent it from attempting to create/use /dev/console since the default behavior is to create/use /dev/console and install_grub() doesn't seem to require an interactive console in order to install grub. Fixes #380 --- diff --git a/mkosi b/mkosi index 22aea8cab..5bae164e0 100755 --- a/mkosi +++ b/mkosi @@ -2296,6 +2296,7 @@ def install_grub(args: CommandLineArguments, workspace: str, loopdev: str, grub: nspawn_params = [ "--bind-ro=/dev", "--property=DeviceAllow=" + loopdev, + "--console=pipe", ] if args.root_partno is not None: nspawn_params += ["--property=DeviceAllow=" + partition(loopdev, args.root_partno)]