- openmandriva
- mageia
- opensuse
+ - photon
format:
- directory
- tar
# Remove once https://github.com/clearlinux/clr-boot-manager/pull/238 is merged and available.
- distro: clear
format: gpt_btrfs
+ # Remove once https://github.com/vmware/tdnf/issues/154 is fixed.
+ - distro: photon
+ format: gpt_btrfs
steps:
- uses: actions/checkout@v2
sudo cmake --install build/dnf
sudo ln -s /usr/bin/dnf-3 /usr/bin/dnf
+
+ wget https://github.com/metalink-dev/libmetalink/archive/release-$LIBMETALINK_VERSION.tar.gz
+ tar xf release-$LIBMETALINK_VERSION.tar.gz
+
+ pushd libmetalink-release-$LIBMETALINK_VERSION
+ ./buildconf
+ ./configure --prefix /usr
+ make
+ sudo make install
+ popd
+
+ wget https://github.com/vmware/tdnf/archive/v$TDNF_VERSION.tar.gz
+ tar xf v$TDNF_VERSION.tar.gz
+
+ cmake \
+ -S tdnf-$TDNF_VERSION \
+ -B build/tdnf \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build/tdnf
+ sudo cmake --install build/tdnf
env:
CMAKE_GENERATOR: Ninja
LIBCOMPS_VERSION: "0.1.15"
LIBSOLV_VERSION: "0.7.14"
LIBDNF_VERSION: "0.48.0"
DNF_VERSION: "4.2.23"
+ LIBMETALINK_VERSION: "0.1.3"
+ TDNF_VERSION: "2.1.1"
- name: Install swupd-extract (Clear Linux)
if: matrix.distro == 'clear'
- name: Build ${{ matrix.distro }}/${{ matrix.format }} UEFI
if: matrix.format != 'directory' && matrix.format != 'tar' && matrix.format != 'plain_squashfs' &&
- (matrix.distro != 'clear' || matrix.format != 'gpt_squashfs')
+ (matrix.distro != 'clear' || matrix.format != 'gpt_squashfs') && matrix.distro != 'photon'
run: sudo ./mkosi
--debug run
--distribution ${{ matrix.distro }}
run(cmdline, check=True)
-def invoke_tdnf(args: CommandLineArguments, root: str, repositories: List[str], packages: List[str]) -> None:
+def invoke_tdnf(args: CommandLineArguments, root: str, repositories: List[str], packages: List[str], gpgcheck: bool) -> None:
repos = ["--enablerepo=" + repo for repo in repositories]
config_file = os.path.join(workspace(root), 'dnf.conf')
packages = make_rpm_list(args, packages)
*repos
]
+ if not gpgcheck:
+ cmdline.append("--nogpgcheck")
+
cmdline += ['install', *packages]
with mount_api_vfs(args, root):
if not do_run_build_script and args.bootable:
packages += ["linux", "initramfs"]
- invoke_tdnf(args, root, args.repositories or ["photon", "photon-updates"], packages)
+ invoke_tdnf(args, root, args.repositories or ["photon", "photon-updates"], packages, os.path.exists(gpgpath))
reenable_kernel_install(args, root, masked)