Test nonfree repos

This commit is contained in:
Gerald Pinder
2025-02-18 23:58:32 -05:00
parent ac5e9ea06b
commit e2c8f52662
2 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env nu
def main [_config: string] {
def main [_config: string]: nothing -> nothing {
const WRAPPED_DRACUT_PATH = '/usr/libexec/rpm-ostree/wrapped/dracut'
const DRACUT_PATH = '/usr/bin/dracut'
const KERNEL_MODULES_PATH = '/usr/lib/modules'
@@ -34,6 +34,7 @@ def main [_config: string] {
| get name
| path basename
| each {|kernel|
print $'(ansi green)Generating initramfs for kernel (ansi cyan)($kernel)(ansi reset)'
let image_path = [$KERNEL_MODULES_PATH $kernel initramfs.img] | path join
try {
(^$dracut_path
@@ -45,5 +46,8 @@ def main [_config: string] {
-f $image_path)
}
chmod 0600 $image_path
print $"(ansi green)Finished generating initramfs for kernel (ansi cyan)($kernel)(ansi reset)\n"
}
print $'(ansi green)Generating initramfs images complete(ansi reset)'
}

View File

@@ -1,6 +1,16 @@
---
# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
modules:
- type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
cleanup: true
nonfree: negativo17-multimedia
- type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos:
cleanup: true
nonfree: rpmfusion
- type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module
repos: