From be17a0cc66f084eac041b464230278915fe601f2 Mon Sep 17 00:00:00 2001
From: openeuler-ci-bot <80474298@qq.com>
Date: Tue, 15 Dec 2020 02:58:56 +0800
Subject: [PATCH 1/3] [patch tracking] 20201215025849779176 -
https://github.com/OSInside/kiwi/commit/7e2386fe4885dab0e996c9934074b63c0fcd344d
---
...86fe4885dab0e996c9934074b63c0fcd344d.patch | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 7e2386fe4885dab0e996c9934074b63c0fcd344d.patch
diff --git a/7e2386fe4885dab0e996c9934074b63c0fcd344d.patch b/7e2386fe4885dab0e996c9934074b63c0fcd344d.patch
new file mode 100644
index 0000000..a6dcd2c
--- /dev/null
+++ b/7e2386fe4885dab0e996c9934074b63c0fcd344d.patch
@@ -0,0 +1,31 @@
+diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
+index 8a3aa8d49e..a1c9641669 100644
+--- a/.gitlab-ci.yml
++++ b/.gitlab-ci.yml
+@@ -100,7 +100,7 @@ rpm_source_package:
+ - rm dist/python-kiwi.changes
+ - >
+ mock
+- --isolation=simple -r /etc/mock/fedora-30-x86_64.cfg
++ --isolation=simple -r /etc/mock/fedora-33-x86_64.cfg
+ --buildsrpm --sources ./dist
+ --resultdir $(pwd)/mock-result-srpm
+ --spec ./python-kiwi.spec 2>&1 | tee srpm_build_out
+@@ -111,7 +111,7 @@ rpm_source_package:
+ - mock-result-srpm
+ expire_in: 1 week
+
+-rpm_fedora_30:
++rpm_fedora_33:
+ image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
+ stage: packages
+ script:
+@@ -121,7 +121,7 @@ rpm_fedora_30:
+ mock
+ --isolation=simple
+ --resultdir $(pwd)/mock-result-fedora
+- -r /etc/mock/fedora-30-x86_64.cfg $(basename $SRC_RPM)
++ -r /etc/mock/fedora-33-x86_64.cfg $(basename $SRC_RPM)
+ artifacts:
+ when: always
+ paths:
--
Gitee
From 45407e35bbf8e5264e71f565e0934c474192a975 Mon Sep 17 00:00:00 2001
From: openeuler-ci-bot <80474298@qq.com>
Date: Tue, 15 Dec 2020 02:58:56 +0800
Subject: [PATCH 2/3] [patch tracking] 20201215025849779176 -
https://github.com/OSInside/kiwi/commit/236b85567a6d7960435ec04f0aea1115f42c4b76
---
...85567a6d7960435ec04f0aea1115f42c4b76.patch | 409 ++++++++++++++++++
1 file changed, 409 insertions(+)
create mode 100644 236b85567a6d7960435ec04f0aea1115f42c4b76.patch
diff --git a/236b85567a6d7960435ec04f0aea1115f42c4b76.patch b/236b85567a6d7960435ec04f0aea1115f42c4b76.patch
new file mode 100644
index 0000000..673be84
--- /dev/null
+++ b/236b85567a6d7960435ec04f0aea1115f42c4b76.patch
@@ -0,0 +1,409 @@
+diff --git a/doc/source/building_images/build_expandable_disk.rst b/doc/source/building_images/build_expandable_disk.rst
+index 724493b813..09a7fe8c5e 100644
+--- a/doc/source/building_images/build_expandable_disk.rst
++++ b/doc/source/building_images/build_expandable_disk.rst
+@@ -355,6 +355,14 @@ oemconfig.oem-swap Element
+ swap partition will be created. This value is represented
+ by the ``kiwi_oemswap`` variable in the initrd
+
++oemconfig.oem-swapname Element
++ Specify the name of the swap space. By default the name is set
++ to ``LVSwap``. The default already indicates that this setting
++ is only useful in combination with the LVM volume manager. In
++ this case the swapspace is setup as a volume in the volume
++ group and any volume needs a name. The name set here is used
++ to give the swap volume a name.
++
+ oemconfig.oem-swapsize Element
+ Set the size of the swap partition. If a swap partition is to be
+ created and the size of the swap partition is not specified with
+diff --git a/kiwi/runtime_checker.py b/kiwi/runtime_checker.py
+index 8b4a3054a8..75db14867b 100644
+--- a/kiwi/runtime_checker.py
++++ b/kiwi/runtime_checker.py
+@@ -138,11 +138,41 @@ def check_volume_label_used_with_lvm(self):
+ volume_management = self.xml_state.get_volume_management()
+ if volume_management != 'lvm':
+ for volume in self.xml_state.get_volumes():
+- if volume.label and volume.name != 'LVSwap':
++ if volume.label and volume.label != 'SWAP':
+ raise KiwiRuntimeError(
+ message.format(volume_management)
+ )
+
++ def check_swap_name_used_with_lvm(self):
++ """
++ The optional oem-swapname is only effective if used together
++ with the LVM volume manager. A name for the swap space can
++ only be set if it is created as a LVM volume. In any other
++ case the name does not apply to the system
++ """
++ message = dedent('''\n
++ Specified swap space name: {0} will not be used
++
++ The specified oem-swapname is used without the LVM volume
++ manager. This means the swap space will be created as simple
++ partition for which no name assignment can take place.
++ The name specified in oem-swapname is used to give the
++ LVM swap volume a name. Outside of LVM the setting is
++ meaningless and should be removed.
++
++ Please delete the following setting from your image
++ description:
++
++ {0}
++ ''')
++ volume_management = self.xml_state.get_volume_management()
++ if volume_management != 'lvm':
++ oemconfig = self.xml_state.get_build_type_oemconfig_section()
++ if oemconfig and oemconfig.get_oem_swapname():
++ raise KiwiRuntimeError(
++ message.format(oemconfig.get_oem_swapname()[0])
++ )
++
+ def check_volume_setup_defines_reserved_labels(self):
+ message = dedent('''\n
+ Reserved label name used in LVM volume setup
+@@ -158,7 +188,11 @@ def check_volume_setup_defines_reserved_labels(self):
+ volume_management = self.xml_state.get_volume_management()
+ if volume_management == 'lvm':
+ for volume in self.xml_state.get_volumes():
+- if volume.name != 'LVSwap':
++ # A swap volume is created implicitly if oem-swap is
++ # requested. This volume detected via realpath set to
++ # swap is skipped from the reserved label check as it
++ # intentionally uses the reserved label named SWAP
++ if volume.realpath != 'swap':
+ if volume.label and volume.label in reserved_labels:
+ raise KiwiRuntimeError(
+ message.format(
+diff --git a/kiwi/schema/kiwi.rnc b/kiwi/schema/kiwi.rnc
+index 2b2b4c1b1e..eabc94ad16 100644
+--- a/kiwi/schema/kiwi.rnc
++++ b/kiwi/schema/kiwi.rnc
+@@ -725,6 +725,24 @@ div {
+ }
+ }
+
++#==========================================
++# common element
++#
++div {
++ k.oem-swapname.attlist = empty
++ k.oem-swapname =
++ ## For oem images: Set the name of the swap space
++ ## The name of the swap space is used only if the
++ ## image is configured to use the LVM volume manager.
++ ## In this case swap is a volume and the volume takes
++ ## a name. In any other case the given name will have
++ ## no effect.
++ element oem-swapname {
++ k.oem-swapname.attlist,
++ text
++ }
++}
++
+ #==========================================
+ # common element
+ #
+@@ -2614,6 +2632,7 @@ div {
+ k.oem-skip-verify? &
+ k.oem-swap? &
+ k.oem-swapsize? &
++ k.oem-swapname? &
+ k.oem-systemsize? &
+ k.oem-unattended? &
+ k.oem-unattended-id?
+diff --git a/kiwi/schema/kiwi.rng b/kiwi/schema/kiwi.rng
+index ab4554aba8..1c8a299570 100644
+--- a/kiwi/schema/kiwi.rng
++++ b/kiwi/schema/kiwi.rng
+@@ -1112,6 +1112,28 @@ partition in MB
+
+
+
++
++
++
++
++
++
++
++ For oem images: Set the name of the swap space
++The name of the swap space is used only if the
++image is configured to use the LVM volume manager.
++In this case swap is a volume and the volume takes
++a name. In any other case the given name will have
++no effect.
++
++
++
++
++
+