From 0079e5c43799bed49edf96a0dc70224b6f8a9820 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 14 Jun 2021 16:46:23 -0400 Subject: [PATCH] Change imgutil packaging and pkglist path --- imgutil/confluent_imgutil.spec.tmpl | 1 + imgutil/imgutil | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/imgutil/confluent_imgutil.spec.tmpl b/imgutil/confluent_imgutil.spec.tmpl index 55bf1e3f..f334deea 100644 --- a/imgutil/confluent_imgutil.spec.tmpl +++ b/imgutil/confluent_imgutil.spec.tmpl @@ -19,6 +19,7 @@ images for diskless boot. mkdir -p opt/confluent/lib/imgutil mkdir -p opt/confluent/bin mv imgutil opt/confluent/bin/ +chmod a+x opt/confluent/bin/imgutil mv el8 opt/confluent/lib/imgutil/ %install diff --git a/imgutil/imgutil b/imgutil/imgutil index 96cd917a..533b34ad 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -73,8 +73,8 @@ class ElHandler(object): self.oscategory = 'el8' self.yumargs = [] - def add_pkglists(self, profile='default'): - with open(os.path.join(get_mydir('el8'), 'profiles/{}/pkglist'.format(profile)), 'r') as pkglist: + def add_pkglists(self): + with open(os.path.join(get_mydir('el8'), 'pkglist'), 'r') as pkglist: pkgs = pkglist.read() pkgs = pkgs.split() self.yumargs.extend(pkgs)