linux-user: add netlink RTM_SETLINK command
commit65b261a63a48fbb3b11193361d4ea0c38a3c3dfd
authorLaurent Vivier <laurent@vivier.eu>
Thu, 9 Jul 2020 07:23:32 +0000 (9 09:23 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 13 Jul 2020 19:26:33 +0000 (13 21:26 +0200)
tree165f653ed69d05431799e4dfba61033aff503f09
parentd9679ee592dd181854a39ed05db4038c0a6bbf80
linux-user: add netlink RTM_SETLINK command

This command is needed to be able to boot systemd in a container.

  $ sudo systemd-nspawn -D /chroot/armhf/sid/ -b
  Spawning container sid on /chroot/armhf/sid.
  Press ^] three times within 1s to kill container.
  systemd 245.6-2 running in system mode.
  Detected virtualization systemd-nspawn.
  Detected architecture arm.

  Welcome to Debian GNU/Linux bullseye/sid!

  Set hostname to <virt-arm>.
  Failed to enqueue loopback interface start request: Operation not supported
  Caught <SEGV>, dumped core as pid 3.
  Exiting PID 1...
  Container sid failed with error code 255.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200709072332.890440-2-laurent@vivier.eu>
linux-user/fd-trans.c