From e6098c2cd0a1786ba5b34b603247b4ef644e2312 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 10 Feb 2017 13:44:32 -0600 Subject: ds-identify: read ds=nocloud properly The nocloud datasource specifically would look for ds=nocloud or ds=nocloud-net (often augmented with 'seedfrom') on the kernel command line. Fix to return DS_FOUND in that case. LP: #1663723 --- tools/ds-identify | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/ds-identify') diff --git a/tools/ds-identify b/tools/ds-identify index 88094af7..e454ed6d 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -514,6 +514,9 @@ dscheck_MAAS() { dscheck_NoCloud() { local fslabel="cidata" d="" + case " ${DI_KERNEL_CMDLINE} " 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 -- cgit v1.2.3