]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Use console=pipe in install_grub() when calling nspawn 382/head
authorClayton Craft <clayton.a.craft@intel.com>
Sat, 9 Nov 2019 19:50:12 +0000 (11:50 -0800)
committerClayton Craft <clayton.a.craft@intel.com>
Sat, 9 Nov 2019 19:54:19 +0000 (11:54 -0800)
commitb0174ea179ad8622dc404df20bfc139973bb249e
treeb7061017e4bfabda91b58d6dca85500762012929
parentc9e506a30472e5ca692fa8a0d688c34a79dc81df
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