[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] linux-user: add netlink RTM_SETLINK command
From: |
Laurent Vivier |
Subject: |
Re: [PATCH 2/2] linux-user: add netlink RTM_SETLINK command |
Date: |
Mon, 13 Jul 2020 21:27:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
Le 09/07/2020 à 09:23, Laurent Vivier a écrit :
> 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>
> ---
> linux-user/fd-trans.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c
> index 5d49a53552b2..1486c81aaa27 100644
> --- a/linux-user/fd-trans.c
> +++ b/linux-user/fd-trans.c
> @@ -1204,6 +1204,7 @@ static abi_long target_to_host_data_route(struct
> nlmsghdr *nlh)
> break;
> case RTM_NEWLINK:
> case RTM_DELLINK:
> + case RTM_SETLINK:
> if (nlh->nlmsg_len >= NLMSG_LENGTH(sizeof(*ifi))) {
> ifi = NLMSG_DATA(nlh);
> ifi->ifi_type = tswap16(ifi->ifi_type);
>
Applied to my linux-user-for-5.1 branch.
Thanks,
Laurent