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 #!/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 WRAPPED_DRACUT_PATH = '/usr/libexec/rpm-ostree/wrapped/dracut'
const DRACUT_PATH = '/usr/bin/dracut' const DRACUT_PATH = '/usr/bin/dracut'
const KERNEL_MODULES_PATH = '/usr/lib/modules' const KERNEL_MODULES_PATH = '/usr/lib/modules'
@@ -34,6 +34,7 @@ def main [_config: string] {
| get name | get name
| path basename | path basename
| each {|kernel| | 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 let image_path = [$KERNEL_MODULES_PATH $kernel initramfs.img] | path join
try { try {
(^$dracut_path (^$dracut_path
@@ -45,5 +46,8 @@ def main [_config: string] {
-f $image_path) -f $image_path)
} }
chmod 0600 $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 # yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json
modules: 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 - type: dnf
source: ghcr.io/blue-build/modules/dnf:dnf-module source: ghcr.io/blue-build/modules/dnf:dnf-module
repos: repos: