Skip to content

Commit

Permalink
Allow disabling unified kernel images on BIOS for all distros
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Dec 17, 2020
1 parent c063cb8 commit 184a2ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ jobs:
if: matrix.format != 'directory' &&
matrix.format != 'gpt_squashfs' &&
matrix.format != 'plain_squashfs' &&
matrix.format != 'tar' && (
matrix.distro == 'arch' ||
matrix.distro == 'centos' ||
matrix.distro == 'fedora')
matrix.format != 'tar'
run: |
tee mkosi.default << EOF
[Distribution]
Expand All @@ -152,6 +149,7 @@ jobs:
Format=${{ matrix.format }}
Bootable=yes
BootProtocols=bios
WithUnifiedKernelImages=no
[Validation]
Password=
Expand All @@ -166,8 +164,5 @@ jobs:
if: matrix.format != 'directory' &&
matrix.format != 'gpt_squashfs' &&
matrix.format != 'plain_squashfs' &&
matrix.format != 'tar' && (
matrix.distro == 'arch' ||
matrix.distro == 'centos' ||
matrix.distro == 'fedora')
matrix.format != 'tar'
run: sudo ./tests/pexpect/boot.py python3 -m mkosi qemu
11 changes: 6 additions & 5 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4924,11 +4924,12 @@ def load_args(args: CommandLineArguments) -> CommandLineArguments:
if args.bootable and args.distribution in (Distribution.clear, Distribution.photon):
die("Sorry, --bootable is not supported on this distro")

if not args.with_unified_kernel_images and args.distribution in (Distribution.debian,
Distribution.ubuntu,
Distribution.mageia,
Distribution.opensuse):
die(f"Sorry, --without-unified-kernel-images is not supported on this distro.")
if not args.with_unified_kernel_images and "uefi" in args.boot_protocols:
if args.distribution in (Distribution.debian,
Distribution.ubuntu,
Distribution.mageia,
Distribution.opensuse):
die(f"Sorry, --without-unified-kernel-images is not supported in UEFI mode on this distro.")

if args.verity and not args.with_unified_kernel_images:
die("Sorry, --verity can only be used with unified kernel images")
Expand Down

0 comments on commit 184a2ad

Please sign in to comment.