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