mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 23:52:58 +00:00
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 8328f0bf64755d8b70308c49501ee27869711067 Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Thu, 28 May 2020 21:05:16 +0300
|
|
Subject: [PATCH 03/13] Copy all files that match a glob
|
|
|
|
We want to copy /boot/grub2/themes/rosa/*, which means all files inside /boot/grub2/themes/rosa/,
|
|
but not only the first file. This patch restores behaviour of an older version of livecd-tools.
|
|
---
|
|
imgcreate/live.py | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/imgcreate/live.py b/imgcreate/live.py
|
|
index 2cb6617..2207c59 100644
|
|
--- a/imgcreate/live.py
|
|
+++ b/imgcreate/live.py
|
|
@@ -730,7 +730,8 @@ menu end
|
|
logging.error("Missing EFI file (%s)" % (src,))
|
|
fail = True
|
|
else:
|
|
- shutil.copy(src_glob[0], isodir+dest)
|
|
+ for src_file in src_glob:
|
|
+ shutil.copy(src_file, isodir+dest)
|
|
return fail
|
|
|
|
def __get_basic_efi_config(self, **args):
|
|
@@ -1113,7 +1114,8 @@ class aarch64LiveImageCreator(LiveImageCreatorBase):
|
|
logging.error("Missing EFI file (%s)" % (src,))
|
|
fail = True
|
|
else:
|
|
- shutil.copy(src_glob[0], isodir+dest)
|
|
+ for src_file in src_glob:
|
|
+ shutil.copy(src_file, isodir+dest)
|
|
return fail
|
|
|
|
def __get_basic_efi_config(self, **args):
|
|
--
|
|
2.31.1
|
|
|