guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add edit warning to generated grub.cfg files


From: John Darrington
Subject: 02/02: gnu: Add edit warning to generated grub.cfg files
Date: Thu, 8 Sep 2016 16:08:48 +0000 (UTC)

jmd pushed a commit to branch master
in repository guix.

commit fdf14c64f1dc7526e84b7e0ce41bf99e5b31c3f8
Author: John Darrington <address@hidden>
Date:   Thu Sep 8 14:56:14 2016 +0200

    gnu: Add edit warning to generated grub.cfg files
    
    * gnu/services/grub.scm (grub-configuration-file): Add code to emit warning.
---
 gnu/system/grub.scm |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index 45b46ca..aa93c0f 100644
--- a/gnu/system/grub.scm
+++ b/gnu/system/grub.scm
@@ -270,6 +270,10 @@ corresponding to old generations of the system."
     (define builder
       #~(call-with-output-file #$output
           (lambda (port)
+            (format port
+                    "# This file was generated from your GuixSD configuration. 
 Any changes
+# will be lost upon reconfiguration.
+")
             #$sugar
             (format port "
 set default=~a



reply via email to

[Prev in Thread] Current Thread [Next in Thread]