From b0174ea179ad8622dc404df20bfc139973bb249e Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sat, 9 Nov 2019 11:50:12 -0800 Subject: [PATCH] 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 --- mkosi | 1 + 1 file changed, 1 insertion(+) 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)] -- 2.47.2