summaryrefslogtreecommitdiff
path: root/tests/unittests/test_runs
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-24 15:53:27 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-24 15:53:27 -0400
commit1302e3dbf762e1f0a72d7b1682a78e8947a33b76 (patch)
treedfcaa4ff51940c342d1326bb7f300b37f594f886 /tests/unittests/test_runs
parenta7053201e892f6401752e17998700d027d23ea89 (diff)
parent557650728d3c1b1c1bbd29f9292d43133c00cdd4 (diff)
downloadvyos-cloud-init-1302e3dbf762e1f0a72d7b1682a78e8947a33b76.tar.gz
vyos-cloud-init-1302e3dbf762e1f0a72d7b1682a78e8947a33b76.zip
support reading network config from kernel command line
This adds support for suppling network configuration on the kernel command line in 2 ways: a.) kernel command line includes 'network-config=<base64>' value of that parameter is base64 encoded json (or yaml) it is taken as network config yaml. In order to save space on kernel command line, it can be base64 encoded gzipped json also. b.) ip= paired with files authored by klibc's ipconfig tool When network devices are brought up in the initramfs, klibc's ipconfig tool writes files are named /run/net-<DEVNAME>.conf. The best documentation available on that tool is /usr/share/doc/libklibc/README.ipconfig.gz. Also changes util.get_cmdline() to return the command line of pid 1 if it is in a container. That is to make it consistent with The systemd generator, and allow passing a command line to lxd, as lxd does not mask /proc/cmdline.
Diffstat (limited to 'tests/unittests/test_runs')
0 files changed, 0 insertions, 0 deletions