lp:~smoser/pollinate/trunk.virt-cleanup
- Get this branch:
- bzr branch lp:~smoser/pollinate/trunk.virt-cleanup
Branch merges
- pollinate: Pending requested
-
Diff: 58 lines (+27/-8)1 file modifiedpollinate (+27/-8)
Branch information
Recent revisions
- 355. By Scott Moser
-
pollinate: Use systemd-detect-virt and namespace virt/<type> in useragent.
This changes pollinate's collection of hypervisor to use
systemd-detect- virt(1) when the system is running in systemd. The old
code path is mostly maintained for systems where that is not the
case.Things to note about this change:
a.) systemd-detect-virt is much faster than running even a single
dmesg | grep --quiet kvm
On my system, 'dmesg | grep --quiet kvm' takes ~ 7.5 seconds per 1000
runs while systemd-detect-virt takes ~ 0.8.
b.) systemd-detect-virt will only identify the "innermost" virt.
If running in an lxc container on kvm, it would report 'lxc'
The previous path could potentially report 'kvm' and 'xen' or 'lxd'.
c.) The old path would report 'lxd' this change reports 'lxc'
d.) Instead of '<virt>/' this adds to the useragent 'virt/<virt>'
('virt/kvm' rather than 'kvm/') - 353. By Scott Moser
-
pollinate: Add cloud image build info and data in 'add-user-agent'.
This adds the ability for user or software to write additional information
into /etc/pollinate/add-user- agent that will be surfaced in user-agent.
The format of the file is tokens one per line of <namespace>/<data>.
Comments are supported with '#' either inline on a line by themselves.We expect to have some combination of MAAS and curtin write information
to /etc/pollinate/add-user- agent such as:
maas/version/ 2.3.1 Additionally, collect up data in /etc/cloud/
build.info. Official Ubuntu
images write 'serial: XXXXXXX' to this file as well as 'build_name'.
build_name is not reported if it is the expected value of 'server'. - 352. By Dustin Kirkland
-
* debian/
pollinate. postinst:
- ensure that the pollinate user owns /var/cache/pollinate;
to be safe, we're going to do this just after the mkdir, and
after the adduser;
this avoids the warning:
+ adduser: Warning: The home directory /var/cache/pollinate
does not belong to the user you are currently creating.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~pollinate/pollinate/trunk