Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
feat: initramfs building in-image
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed May 13, 2024
1 parent c6459ae commit 0e73601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions files/scripts/initramfs.nu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let KERNEL_SUFFIX = "" # SHOULD INCLUDE "-" AFTER!
# TODO: Implement KERNEL_SUFFIX here without major breakages
let QUALIFIED_KERNEL = (run-external 'rpm' '-qa' --redirect-stdout | complete | get stdout | lines | find --regex '^kernel-[0-9]*\.[0-9]*\.[0-9]*' | str replace $'kernel-' "").0

rpm-ostree cliwrap install-to-root /
/usr/libexec/rpm-ostree/wrapped/dracut '--no-hostonly' '--kver' $"($QUALIFIED_KERNEL)" '--reproducible' '-v' '--add' 'ostree' '-f' $"/lib/modules/($QUALIFIED_KERNEL)/initramfs.img"

chmod '0600' $"/lib/modules/($QUALIFIED_KERNEL)/initramfs.img"
2 changes: 1 addition & 1 deletion generators/config/shared.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ shared = new Dynamic {
}
scripts = (modules.Script) {
scripts = new Listing {
//"initramfs.nu"
"initramfs.nu"
"ptyxis.nu"
"extra-packages.nu"
"tuned.nu"
Expand Down

0 comments on commit 0e73601

Please sign in to comment.