aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Darrington <jmd@gnu.org>2016-09-08 14:56:14 +0200
committerJohn Darrington <jmd@gnu.org>2016-09-08 18:08:29 +0200
commitfdf14c64f1dc7526e84b7e0ce41bf99e5b31c3f8 (patch)
tree177daa7c1f29a4d41ac7cc95dcb988a65939d16a /gnu
parent1c6c0ad067b558fcbebd87e8cb51d342d808163e (diff)
downloadguix-fdf14c64f1dc7526e84b7e0ce41bf99e5b31c3f8.tar
guix-fdf14c64f1dc7526e84b7e0ce41bf99e5b31c3f8.tar.gz
gnu: Add edit warning to generated grub.cfg files
* gnu/services/grub.scm (grub-configuration-file): Add code to emit warning.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/system/grub.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index 45b46cae6f..aa93c0f454 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