linux-initrd: Add a hint for the missing module error.
* gnu/system/linux-initrd.scm (check-device-initrd-modules): Add a '&fix-hint'.
This commit is contained in:
		
							parent
							
								
									16de45557f
								
							
						
					
					
						commit
						abfbdafd0e
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -362,6 +362,18 @@ DEVICE must be a \"/dev\" file name." | ||||||
|                (message (format #f (G_ "you may need these modules \ |                (message (format #f (G_ "you may need these modules \ | ||||||
| in the initrd for ~a:~{ ~a~}") | in the initrd for ~a:~{ ~a~}") | ||||||
|                                 device modules))) |                                 device modules))) | ||||||
|  |               (&fix-hint | ||||||
|  |                (hint (format #f (G_ "Try adding them to the | ||||||
|  | @code{initrd-modules} field of your @code{operating-system} declaration, along | ||||||
|  | these lines: | ||||||
|  | 
 | ||||||
|  | @example | ||||||
|  |  (operating-system | ||||||
|  |    ;; @dots{} | ||||||
|  |    (initrd-modules (append (list~{ ~s~}) | ||||||
|  |                            %base-initrd-modules))) | ||||||
|  | @end example\n") | ||||||
|  |                              modules))) | ||||||
|               (&error-location |               (&error-location | ||||||
|                (location (source-properties->location location)))))))) |                (location (source-properties->location location)))))))) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue