[Libguestfs] [PATCH] appliance: Remove /etc/dhcp/dhclient-enter-hooks.d/resolved.

Pino Toscano ptoscano at redhat.com
Thu Apr 18 09:58:07 UTC 2019


On Thursday, 18 April 2019 11:53:39 CEST Richard W.M. Jones wrote:
> Workaround for Ubuntu which uses this script to try to start a systemd
> service.  That won't work because systemd is not used inside the
> appliance.  See:
> 
> https://bugs.launchpad.net/ubuntu/+source/supermin/+bug/1824236
> 
> Thanks: Ioanna Alifieraki
> ---
>  appliance/init | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/appliance/init b/appliance/init
> index 4f2b55822..b1c4d09ea 100755
> --- a/appliance/init
> +++ b/appliance/init
> @@ -122,7 +122,9 @@ ip link set dev lo up
>  
>  if test "$guestfs_network" = 1; then
>      iface=$(ls -I all -I default -I lo /proc/sys/net/ipv4/conf)
> -    touch /etc/fstab   # Workaround for Ubuntu.
> +    # Two workarounds for Ubuntu:
> +    touch /etc/fstab
> +    rm -f /etc/dhcp/dhclient-enter-hooks.d/resolved
>      if dhclient --version >/dev/null 2>&1; then

Why not add it as excludefile when building the supermin appliance,
instead?  This way, Ubuntu would not even need to do any changes in
libguestfs itself, and that excludefile can be shipped by the same
package installing that dhclient hook.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190418/72794246/attachment.sig>


More information about the Libguestfs mailing list