Skip to content

Commit

Permalink
ukify: be more explicit about where to find ukify
Browse files Browse the repository at this point in the history
when KERNEL_INSTALL_UKIFY is not supplied we set ukify to $PWD/ukify

that will fail (perhaps only for manual installations):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/src/linux-6.7-rc1/ukify'

this will make sure we have a sane default for UKIFY

Signed-off-by: Paymon MARANDI <[email protected]>
  • Loading branch information
Paymon MARANDI authored and yuwata committed Nov 25, 2023
1 parent c00b446 commit b99e492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kernel-install/60-ukify.install.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import argparse
import os
import runpy
import shlex
from shutil import which
from pathlib import Path
from typing import Optional

Expand All @@ -34,7 +35,7 @@ except (KeyError, ValueError):
VERBOSE = False

# Override location of ukify and the boot stub for testing and debugging.
UKIFY = os.getenv('KERNEL_INSTALL_UKIFY', 'ukify')
UKIFY = os.getenv('KERNEL_INSTALL_UKIFY', which('ukify'))
BOOT_STUB = os.getenv('KERNEL_INSTALL_BOOT_STUB')


Expand Down

0 comments on commit b99e492

Please sign in to comment.