Skip to content

Commit

Permalink
Merge pull request #198 from desultory/dev
Browse files Browse the repository at this point in the history
Use the old staging area if INSTALLKERNEL_STAGING_AREA is not set, improve logging
  • Loading branch information
desultory authored Jan 22, 2025
2 parents 7640c4d + 2c0391f commit d1e0e0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hooks/installkernel/52-ugrd.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ver=${1}
img=${2}
initrd=${INSTALLKERNEL_STAGING_AREA}/initrd
initrd=${INSTALLKERNEL_STAGING_AREA:-$(dirname "${img}")}/initrd

# familiar helpers, we intentionally don't use Gentoo functions.sh
die() {
Expand Down
9 changes: 6 additions & 3 deletions src/ugrd/base/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "desultory"
__version__ = "4.1.0"
__version__ = "4.1.1"

from pathlib import Path
from shutil import rmtree, which
Expand Down Expand Up @@ -258,8 +258,11 @@ def _process_out_file(self, out_file: str) -> None:
return

if "/" in out_file: # If the out_file contains a path, resolve it
out_file = Path(out_file).resolve()
self.logger.info("Resolved relative output path: %s" % out_file)
out_file = Path(out_file)
resolved_out_file = out_file.resolve()
if resolved_out_file != out_file:
out_file = resolved_out_file
self.logger.info("Resolved relative output path: %s" % out_file)
else:
out_file = Path(out_file)

Expand Down

0 comments on commit d1e0e0d

Please sign in to comment.