diff options
author | Sisiutl <sisiutl@egregore.fun> | 2024-10-03 12:49:07 +0200 |
---|---|---|
committer | Sisiutl <sisiutl@egregore.fun> | 2024-10-03 12:49:07 +0200 |
commit | fa59b158f20fe817771013ffedc49b3e7776cbfe (patch) | |
tree | cf01a9137161a669a96327946e352dda33ade8d3 | |
parent | 79fd93b2a2d742c6c6604dfd32cd70129b1f7a5a (diff) |
Add working search paths for cryptodisks.
-rw-r--r-- | sigils/bootloader/grub.scm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sigils/bootloader/grub.scm b/sigils/bootloader/grub.scm index e1f1b76..4c442ba 100644 --- a/sigils/bootloader/grub.scm +++ b/sigils/bootloader/grub.scm @@ -49,6 +49,7 @@ #~(call-with-output-file #$output (lambda (port) (use-modules (ice-9 textual-ports) + (ice-9 string-fun) ;; delete-duplicates in needed gexps (srfi srfi-1)) @@ -56,14 +57,12 @@ (display "insmod lvm\n" port) (display - (string-join - (filter - ;; Let's get straight to the point. - (lambda (line) - (not (string-prefix? "search --label --set" (string-trim line)))) - (string-split - (call-with-input-file #$original-grub-cfg get-string-all) #\newline)) - "\n") port) + ;; Let's get straight to the point. + (string-replace-substring + (call-with-input-file #$original-grub-cfg get-string-all) + "search --label --set rootfs" ;; to replace with something working on all systems + "search --label --set bootfs") + port) (display "\n\n" port) |