You have been subscribed to a public bug:

Problem:
Guest OS customization fail for ubuntu 22.04 desktop in vsphere due to  adding 
'shutdown.target' in file /usr/lib/systemd/system/systemd-networkd.socket

Analysis
Compared with Ubuntu 21.04 desktop image, there is a difference in 
/usr/lib/systemd/system/systemd-networkd.socket, "shutdown.target" is added to 
Before and Conflicts options.

Ubuntu 22.04
  [Unit]
  Description=Network Service Netlink Socket
  Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
  ConditionCapability=CAP_NET_ADMIN
  DefaultDependencies=no
  Before=sockets.target shutdown.target
  Conflicts=shutdown.target
Ubuntu 21.04
  [Unit]
  Description=Network Service Netlink Socket
  Documentation=man:systemd-networkd.service(8) man:rtnetlink(7)
  ConditionCapability=CAP_NET_ADMIN
  DefaultDependencies=no
  Before=sockets.target

After removed "shutdown.target" from /usr/lib/systemd/system/systemd-
networkd.socket in ubuntu 22.04 desktop, this issue did NOT reproduce
since systemd-networkd.service starts much earlier

So the root cause of the issue is that adding 'shutdown.target' leads
systemd-networkd.service starts late which makes customization command
'/usr/sbin/netplan apply' fail.

Not sure why adding 'shutdown.target' to file
/usr/lib/systemd/system/systemd-networkd.socket ?

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: bot-comment
-- 
Guest OS customization fail for ubuntu 22.04 desktop in vsphere due to  adding 
'shutdown.target' in file /usr/lib/systemd/system/systemd-networkd.socket
https://bugs.launchpad.net/bugs/1962843
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to systemd in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to