diff --git a/Datasource-ecs.patch b/Datasource-ecs.patch new file mode 100644 index 0000000000000000000000000000000000000000..42aa750143613d319124edd9d7688951add3569a --- /dev/null +++ b/Datasource-ecs.patch @@ -0,0 +1,11 @@ +--- cloud-init-19.1.17/config/cloud.cfg.tmpl 2022-04-11 14:34:19.000000000 +0800 ++++ cloud-init-19.1.17/config/cloud.cfg.tmpl2 2022-10-12 11:44:29.298056976 +0800 +@@ -33,8 +33,6 @@ apt: + {% endif %} + + +-datasource_list: [ AliYun ] +- + # Example datasource config + datasource: + AliYun: diff --git a/Modify-the-default-configuration-of-ecs.patch b/Modify-the-default-configuration-of-ecs.patch new file mode 100644 index 0000000000000000000000000000000000000000..ff07edc8df22c4c6a382de4ba0fe9a786fd3d480 --- /dev/null +++ b/Modify-the-default-configuration-of-ecs.patch @@ -0,0 +1,13 @@ +--- cloud-init-19.1.17/config/cloud.cfg.tmpl 2022-04-11 14:34:19.000000000 +0800 ++++ cloud-init-19.1.17/config/cloud.cfg.tmpl2 2022-10-09 15:58:19.113240586 +0800 +@@ -46,10 +46,6 @@ datasource: + # The modules that run in the 'init' stage + cloud_init_modules: + - migrator +-{% if variant not in ["sles","freebsd"] %} +- - source-address +-{% endif %} +- - pip-source + - seed_random + - bootcmd + - write-files diff --git a/cloud-init.spec b/cloud-init.spec index 936b1fc33d28757d712ee28af387b62ac39d8e2b..d5482d2c7833c77e42042019102a15ee622458d3 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -27,6 +27,7 @@ URL: http://launchpad.net/cloud-init Source0: cloud-init-19.1.17.tgz Patch0: Enable-ipv6-network-by-default.patch +Patch1: Datasource-ecs.patch BuildArch: noarch BuildRoot: %{_tmppath} @@ -118,6 +119,7 @@ ssh keys and to let the user run various scripts. %prep %setup -q -n cloud-init-19.1.17 %patch0 -p1 +%patch1 -p1 # Custom patches activation @@ -251,6 +253,9 @@ fi %{python_sitelib}/* %changelog +* Sun Oct 09 2022 Xiaoping Liu - 19.1.17-1.0.2 +- Modify the default configuration of ecs + * Tue Jun 28 2022 Chang Gao - 19.1.17-1.0.1 - Reversion to 19.1.17 - cancel disable network config @@ -259,7 +264,7 @@ fi * Thu Dec 16 2021 Mingyue Zhao - 19.1.14-1.1 - Supports non-root logins -* Fri Dec 12 2021 Mingyue Zhao - 19.1.13-1.2 +* Sun Dec 12 2021 Mingyue Zhao - 19.1.13-1.2 - Fixed the Qboot image startup link timeout problem * Wed Dec 08 2021 Mingyue Zhao - 19.1.13-1.1