gnu: Add edit warning to generated grub.cfg files
* gnu/services/grub.scm (grub-configuration-file): Add code to emit warning.
This commit is contained in:
		
							parent
							
								
									1c6c0ad067
								
							
						
					
					
						commit
						fdf14c64f1
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -270,6 +270,10 @@ corresponding to old generations of the system."
 | 
				
			||||||
    (define builder
 | 
					    (define builder
 | 
				
			||||||
      #~(call-with-output-file #$output
 | 
					      #~(call-with-output-file #$output
 | 
				
			||||||
          (lambda (port)
 | 
					          (lambda (port)
 | 
				
			||||||
 | 
					            (format port
 | 
				
			||||||
 | 
					                    "# This file was generated from your GuixSD configuration.  Any changes
 | 
				
			||||||
 | 
					# will be lost upon reconfiguration.
 | 
				
			||||||
 | 
					")
 | 
				
			||||||
            #$sugar
 | 
					            #$sugar
 | 
				
			||||||
            (format port "
 | 
					            (format port "
 | 
				
			||||||
set default=~a
 | 
					set default=~a
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue