Skip to content

Commit

Permalink
Merge pull request #2401 from DaanDeMeyer/bash
Browse files Browse the repository at this point in the history
Various fixes
  • Loading branch information
DaanDeMeyer authored Feb 18, 2024
2 parents 7afa0e0 + 9ecb80d commit ae8e905
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ jobs:
tools: opensuse
- distro: ubuntu
tools: opensuse
# rpm in Debian is currently missing
# https://github.com/rpm-software-management/rpm/commit/ea3187cfcf9cac87e5bc5e7db79b0338da9e355e
- distro: fedora
tools: debian
- distro: centos
tools: debian
# This combination results in rpm failing because of SIGPIPE.
# TODO: Try again once Arch gets a new rpm release.
- distro: centos
Expand Down
1 change: 1 addition & 0 deletions mkosi/installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def mounts(cls, context: Context) -> list[PathString]:
Path("/var") / d / subdir / p.relative_to(src),
]
for p in caches
if (context.config.package_cache_dir_or_default() / d / subdir / p.relative_to(src)).exists()
)

return mounts
Expand Down
3 changes: 3 additions & 0 deletions mkosi/kmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def gen_required_kernel_modules(
yield modulesd
yield modulesd / "kernel"

if (root / "usr/lib/firmware").exists():
yield root / "usr/lib/firmware"

for d in (modulesd, root / "usr/lib/firmware"):
for p in (root / d).rglob("*"):
if p.is_dir():
Expand Down
2 changes: 1 addition & 1 deletion mkosi/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def preexec() -> None:
log_process_failure(cmdline, e.returncode)
if ARG_DEBUG_SHELL.get():
subprocess.run(
[*sandbox, "sh"],
[*sandbox, "bash"],
check=False,
stdin=sys.stdin,
text=True,
Expand Down

0 comments on commit ae8e905

Please sign in to comment.