Test nonfree repos
This commit is contained in:
@@ -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)'
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user