linux-initrd: Remove unused local procedure.
* guix/build/linux-initrd.scm (boot-system)[resolve]: Remove.
This commit is contained in:
		
							parent
							
								
									615215a535
								
							
						
					
					
						commit
						dccab4df20
					
				
					 1 changed files with 0 additions and 9 deletions
				
			
		| 
						 | 
					@ -600,15 +600,6 @@ the new root.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
When VOLATILE-ROOT? is true, the root file system is writable but any changes
 | 
					When VOLATILE-ROOT? is true, the root file system is writable but any changes
 | 
				
			||||||
to it are lost."
 | 
					to it are lost."
 | 
				
			||||||
  (define (resolve file)
 | 
					 | 
				
			||||||
    ;; If FILE is a symlink to an absolute file name, resolve it as if we were
 | 
					 | 
				
			||||||
    ;; under /root.
 | 
					 | 
				
			||||||
    (let ((st (lstat file)))
 | 
					 | 
				
			||||||
      (if (eq? 'symlink (stat:type st))
 | 
					 | 
				
			||||||
          (let ((target (readlink file)))
 | 
					 | 
				
			||||||
            (resolve (string-append "/root" target)))
 | 
					 | 
				
			||||||
          file)))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  (define root-mount-point?
 | 
					  (define root-mount-point?
 | 
				
			||||||
    (match-lambda
 | 
					    (match-lambda
 | 
				
			||||||
     ((device _ "/" _ ...) #t)
 | 
					     ((device _ "/" _ ...) #t)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue