[Libguestfs] [PATCH v1] appliance: add reboot and netconfig for SUSE

Richard W.M. Jones rjones at redhat.com
Tue Sep 14 19:49:25 UTC 2021


On Tue, Sep 14, 2021 at 05:57:43PM +0200, Olaf Hering wrote:
> systemd-sysvinit contains the reboot command, which is used to
> properly stop the VM. This was required by other packages, and as a
> result always available. Since Leap 15.3 it will not be installed, and
> as a result the VM will just panic because /init died.
> 
> If the appliance is started with --network, dhclient will run
> /usr/sbin/dhclient-script, which in turn may call /sbin/netconfig to
> update /etc/resolv.conf. Install sysconfig-netconfig to make sure DNS
> resolving actually works.
> 
> Signed-off-by: Olaf Hering <olaf at aepfle.de>
> ---
>  appliance/packagelist.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/appliance/packagelist.in b/appliance/packagelist.in
> index d0c4f52c6..77a07acc6 100644
> --- a/appliance/packagelist.in
> +++ b/appliance/packagelist.in
> @@ -131,7 +131,9 @@ ifelse(SUSE,1,
>    ntfs-3g
>    reiserfs
>    squashfs
> +  sysconfig-netconfig
>    systemd
> +  systemd-sysvinit
>    vim
>    xz
>  )

Thanks Olaf, I pushed it just now.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list