diff options
author | Sisiutl <sisiutl@egregore.fun> | 2024-10-03 20:52:05 +0200 |
---|---|---|
committer | Sisiutl <sisiutl@egregore.fun> | 2024-10-03 20:52:05 +0200 |
commit | 3a9e3bb3424a30cf4fdd764f01f0739101e9df97 (patch) | |
tree | 0269f3ecb1e64a56d486a922cf010793edd81281 | |
parent | 8095102dad80adb9f254abfd81367e5b0d02d3fd (diff) |
remove search references too
-rw-r--r-- | sigils/bootloader/grub.scm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sigils/bootloader/grub.scm b/sigils/bootloader/grub.scm index f969245..01c9990 100644 --- a/sigils/bootloader/grub.scm +++ b/sigils/bootloader/grub.scm @@ -58,8 +58,14 @@ (display "insmod lvm\n" port) (display - (call-with-input-file #$original-grub-cfg get-string-all) - port) + (string-join + (filter + ;; Let's get straight to the point. + (lambda (line) + (not (string-prefix? "search" (string-trim line)))) + (string-split + (call-with-input-file #$original-grub-cfg get-string-all) #\newline)) + "\n" port)) (display "\n\n" port) |