diff options
author | Vladimir Pouzanov <farcaller@google.com> | 2017-05-02 16:08:34 +0100 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2017-06-06 10:18:20 -0600 |
commit | 802e7cb2da8e2d0225525160e6edd6b58b275b8c (patch) | |
tree | 38e28b5f92ae00f63a8bc13deff7d7627ef6f95c /tools | |
parent | 543e25cda6235d18adb6485e4266944d59e1979d (diff) | |
download | vyos-cloud-init-802e7cb2da8e2d0225525160e6edd6b58b275b8c.tar.gz vyos-cloud-init-802e7cb2da8e2d0225525160e6edd6b58b275b8c.zip |
NoCloud: support seed of nocloud from smbios information
This allows the user to seed NoCloud in a trivial way from qemu/libvirt,
by using a stock image and passing a single command line flag. No custom
command line, no filesystem modification, no bootstrap disk image.
This is particularly handy now that Ec2 backend is discouraged from use
under bug 1660385.
LP: #1691772
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ds-identify | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ds-identify b/tools/ds-identify index 546e0f59..7c8b144b 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -555,6 +555,9 @@ dscheck_NoCloud() { case " ${DI_KERNEL_CMDLINE} " in *\ ds=nocloud*) return ${DS_FOUND};; esac + case " ${DI_DMI_PRODUCT_SERIAL} " in + *\ ds=nocloud*) return ${DS_FOUND};; + esac for d in nocloud nocloud-net; do check_seed_dir "$d" meta-data user-data && return ${DS_FOUND} done |