You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lorax-templates-rhel/SOURCES/0007-Add-sphere-licenses-to...

40 lines
1.2 KiB

From 10de30f87fda00f05abbbe162fd1eb0a9b186475 Mon Sep 17 00:00:00 2001
From: tigro <arkadiy.sheyn@softline.com>
Date: Sat, 30 Sep 2023 16:42:23 +0300
Subject: [PATCH 7/7] Add sphere licenses to live media
---
80-rhel/live/aarch64.tmpl | 2 +-
80-rhel/live/x86.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/80-rhel/live/aarch64.tmpl b/80-rhel/live/aarch64.tmpl
index a59c4ff..64c7f14 100644
--- a/80-rhel/live/aarch64.tmpl
+++ b/80-rhel/live/aarch64.tmpl
@@ -67,7 +67,7 @@ mkdir ${KERNELDIR}
%endfor
# Add the license files
-%for f in glob("/usr/share/licenses/*-release/*"):
+%for f in glob("/usr/share/sphere-release/EULA"):
install ${f} ${f|basename}
<% filegraft += " {0}={1}/{0}".format(basename(f), outroot) %>
%endfor
diff --git a/80-rhel/live/x86.tmpl b/80-rhel/live/x86.tmpl
index 6e10da4..0b92fd6 100644
--- a/80-rhel/live/x86.tmpl
+++ b/80-rhel/live/x86.tmpl
@@ -136,7 +136,7 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
%endfor
# Add the license files
-%for f in glob("/usr/share/licenses/*-release/*"):
+%for f in glob("/usr/share/sphere-release/EULA"):
install ${f} ${f|basename}
<% filegraft += " {0}={1}/{0}".format(basename(f), outroot) %>
%endfor
--
2.47.0