Skip to content

Commit

Permalink
fixup! fixup! add the posibility to upgrade while using a local repos…
Browse files Browse the repository at this point in the history
…itory
  • Loading branch information
PeterMocary committed Jul 25, 2023
1 parent f99324f commit c169b07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions repos/system_upgrade/common/libraries/dnfplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,9 @@ def install_initramdisk_requirements(packages, target_userspace_info, used_repos
"""
Performs the installation of packages into the initram disk
"""
with _prepare_transaction(used_repos=used_repos,
target_userspace_info=target_userspace_info) as (context, target_repoids, _unused):
mount_binds = ['/:/installroot']
with _prepare_transaction(used_repos=used_repos, target_userspace_info=target_userspace_info,
binds=mount_binds) as (context, target_repoids, _unused):
if get_target_major_version() == '9':
_rebuild_rpm_db(context)
repos_opt = [['--enablerepo', repo] for repo in target_repoids]
Expand Down

0 comments on commit c169b07

Please sign in to comment.