summaryrefslogtreecommitdiff
path: root/debian/patches/ds-identify-behavior-xenial.patch
blob: ba7639ab37748f11c8ccadd741fc2f992ebe9296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Adjust behavior of ds-identify for SRU
 To make this acceptable as a SRU we have changed ds-identify to
 act in 'report only' mode, and to only 'warn' when it cloud-init
 finds itself to be using a Ec2 Datasource on an unknown and
 non AWS platform.
Forwarded: not-needed
Author: Scott Moser <smoser@ubuntu.com>
Bug-ubuntu: http://bugs.launchpad.net/bugs/1669675
Bug-ubuntu: http://bugs.launchpad.net/bugs/1660385

--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -93,8 +93,8 @@ _DI_LOGGED=""
 DI_MAIN=${DI_MAIN:-main}
 
 DI_BLKID_OUTPUT=""
-DI_DEFAULT_POLICY="search,found=all,maybe=all,notfound=${DI_DISABLED}"
-DI_DEFAULT_POLICY_NO_DMI="search,found=all,maybe=all,notfound=${DI_ENABLED}"
+DI_DEFAULT_POLICY="report,found=all,maybe=all,notfound=${DI_ENABLED}"
+DI_DEFAULT_POLICY_NO_DMI="report,found=all,maybe=all,notfound=${DI_ENABLED}"
 DI_DMI_CHASSIS_ASSET_TAG=""
 DI_DMI_PRODUCT_NAME=""
 DI_DMI_SYS_VENDOR=""
@@ -131,7 +131,7 @@ DI_ON_FOUND=""
 DI_ON_MAYBE=""
 DI_ON_NOTFOUND=""
 
-DI_EC2_STRICT_ID_DEFAULT="true"
+DI_EC2_STRICT_ID_DEFAULT="warn"
 
 _IS_IBM_CLOUD=""