From 592b29c31ba58b5a9f299250e9cb7ff61acd11bc Mon Sep 17 00:00:00 2001 From: liyuanrong Date: Tue, 1 Mar 2022 16:21:10 +0800 Subject: [PATCH] KubeOS:increase the space of the boot partition Since openEuler 22.03-LTS, the space required by grub-related packages is increased. Therefore, the space of the boot partition is not enough. Therefore, the space of the boot partition needs to be increased. Signed-off-by: liyuanrong --- ...ease-the-space-of-the-boot-partition.patch | 37 +++++++++++++++++++ KubeOS.spec | 9 ++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 0004-KubeOS-increase-the-space-of-the-boot-partition.patch diff --git a/0004-KubeOS-increase-the-space-of-the-boot-partition.patch b/0004-KubeOS-increase-the-space-of-the-boot-partition.patch new file mode 100644 index 0000000..027ddfa --- /dev/null +++ b/0004-KubeOS-increase-the-space-of-the-boot-partition.patch @@ -0,0 +1,37 @@ +From 6205aea742c582737ba4759ab012d2ee7fe67e64 Mon Sep 17 00:00:00 2001 +From: liyuanrong +Date: Tue, 1 Mar 2022 16:02:20 +0800 +Subject: [PATCH] KubeOS:increase the space of the boot partition + +Since openEuler 22.03-LTS, the space required by grub-related +packages is increased. Therefore, the space of the boot partition +is not enough. Therefore, the space of the boot partition needs to +be increased + +Signed-off-by: liyuanrong +--- + scripts/generate.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/scripts/generate.sh b/scripts/generate.sh +index e59dd8c..0bfe6c5 100644 +--- a/scripts/generate.sh ++++ b/scripts/generate.sh +@@ -221,10 +221,10 @@ function create_img() { + rm -f system.img update.img + qemu-img create system.img ${IMG_SIZE}G + parted system.img -- mklabel msdos +- parted system.img -- mkpart primary fat16 1MiB 60MiB +- parted system.img -- mkpart primary ext4 60MiB 2160MiB +- parted system.img -- mkpart primary ext4 2160MiB 4260MiB +- parted system.img -- mkpart primary ext4 4260MiB 100% ++ parted system.img -- mkpart primary fat16 1MiB 100MiB ++ parted system.img -- mkpart primary ext4 100MiB 2200MiB ++ parted system.img -- mkpart primary ext4 2200MiB 4300MiB ++ parted system.img -- mkpart primary ext4 4300MiB 100% + + local device=$(losetup -f) + losetup "${device}" system.img +-- +1.8.3.1 + diff --git a/KubeOS.spec b/KubeOS.spec index db61b04..38e1440 100644 --- a/KubeOS.spec +++ b/KubeOS.spec @@ -2,13 +2,14 @@ Name: KubeOS Version: 1.0.1 -Release: 5 +Release: 6 Summary: O&M platform used to update the whole OS as an entirety License: Mulan PSL v2 Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz Patch1: 0001-KubeOS-modify-checks-in-generate.sh-and-change-modul.patch Patch2: 0002-change-generate-argument-from-isopath-to-repopath.patch Patch3: 0003-KubeOS-add-arm-architecture-support-to-the-OS-image.patch +Patch4: 0004-KubeOS-increase-the-space-of-the-boot-partition.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: make BuildRequires: golang >= 1.13 @@ -81,6 +82,12 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files rm -rfv %{buildroot} %changelog +* Tue Mar 01 2022 liyuanrong - 1.0.1-6 +- Type:requirement +- CVE:NA +- SUG:restart +- DESC:increase the space of the boot partition + * Fri Dec 17 2021 liyuanrong - 1.0.1-5 - Type:requirement - CVE:NA -- Gitee