Skip to content

Commit 824771e

Browse files
committed
nogpgcheck when downloading packages in isoBuilder.py
1 parent daf4d13 commit 824771e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

photon_installer/generate_initrd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def clean_up(self):
186186
self.cmd_util.remove_files(files_to_remove)
187187

188188
def install_initrd_packages(self):
189-
tdnf_args = ["install"] + self.initrd_pkgs
189+
# nogpgcheck to work around installing locally built packages, like photon-os-installer
190+
tdnf_args = ["--nogpgcheck", "install"] + self.initrd_pkgs
190191
# mount_dirs = []
191192
if self.ostree_iso:
192193
self.tdnf.config_file = None

photon_installer/isoBuilder.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ def downloadPkgs(self):
226226
self.logger.info("downloading packages...")
227227
retval = self.tdnf.run(
228228
[
229+
"--nogpgcheck", # work around for installing locally built packages, like photon-os-installer
229230
"--alldeps",
230231
"--downloadonly",
231-
"--downloaddir",
232-
self.rpms_path,
232+
"--downloaddir", self.rpms_path,
233233
"install",
234234
]
235235
+ self.pkg_list,

0 commit comments

Comments
 (0)