breaking it down, the v 1.1.2-8ubuntu1 got the generator path via
`utils.get_generator_path()`
def get_generator_path():
return os.environ.get('NETPLAN_GENERATE_PATH',
'/usr/libexec/netplan/generate')
which in our failing case would be `/usr/libexec/netplan/generate`, then
run with `--root-dir`
in 1.2.0, the start of `argv` is replaced with the configure path
argv = [utils.get_configure_path()]
if self.root_dir:
argv += ['--root-dir', self.root_dir]
self._rootdir = self.root_dir
which is not really used. when supplying `--mapping` it'll run the call
with the `get_generator_path`
if self.mapping: # XXX: get rid of the legacy "--mapping" option
argv[0] = utils.get_generator_path()
res = subprocess.call(argv)
but we aren't trying to get the mapping, we're trying to actually
generate files, and into a different location, but still using the
standard netplan generator. The changelog does not adequately describe
this change, and there does not seem to be another way to tell `netplan
generate` to write files to specific location while calling the standard
installed generate.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137640
Title:
initramfs-tools failed build/autopkgtest with netplan.io 1.2-0ubuntu1:
No such file or directory:
'/tmp/test_netinfo.sh.xqYj/usr/lib/systemd/system-generators/netplan'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2137640/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs