summaryrefslogtreecommitdiff
path: root/0004-bugfix-I3OGUT.patch
blob: b2625066d670b80a5685e780723a8add4dc0e453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From f59ebdd0f2e8927dbb4662769ee99e3384e6e7ca Mon Sep 17 00:00:00 2001
From: xyn-coder <xiangyuning@huawei.com>
Date: Tue, 22 Nov 2022 16:01:13 +0800
Subject: [PATCH] bugfix I3OGUT

---
 isomaker/img_repo.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/isomaker/img_repo.sh b/isomaker/img_repo.sh
index 3335183..eaf5c70 100755
--- a/isomaker/img_repo.sh
+++ b/isomaker/img_repo.sh
@@ -31,7 +31,12 @@ function create_install_img()
 
     echo "${tmprep}" > yumrepo.file
     set +e
-    lorax --isfinal -p "${PRODUCT}" -v "${VERSION}${RELEASE}" -r "${RELEASE}" -t "${VARIANT}" --sharedir 80-openeuler --rootfs-size=4 --buildarch="$ARCH" $(cat yumrepo.file) --nomacboot --noupgrade "${BUILD}"/iso > lorax.logfile 2>&1
+    if [ -n "${RELEASE}" ];then
+        vertmp="${VERSION}-${RELEASE}"
+    else
+        vertmp=${VERSION}
+    fi
+    lorax --isfinal -p "${PRODUCT}" -v "${vertmp}" -r "${RELEASE}" -t "${VARIANT}" --sharedir 80-openeuler --rootfs-size=4 --buildarch="$ARCH" $(cat yumrepo.file) --nomacboot --noupgrade "${BUILD}"/iso > lorax.logfile 2>&1
 
     if [ $? != 0 ] ; then
         cat lorax.logfile
-- 
2.33.0