hurd-boot: Set /hurd/magic on /dev/fd.
* gnu/build/hurd-boot.scm (set-hurd-device-translators)[devices]: Add "/dev/fd".
This commit is contained in:
		
							parent
							
								
									d96e739f08
								
							
						
					
					
						commit
						57a7aa1ae3
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -211,6 +211,9 @@ set." | ||||||
|       ("dev/vcs"     ("/hurd/console")) |       ("dev/vcs"     ("/hurd/console")) | ||||||
|       ("dev/tty"     ("/hurd/magic"    "tty")               #o666) |       ("dev/tty"     ("/hurd/magic"    "tty")               #o666) | ||||||
| 
 | 
 | ||||||
|  |       ;; 'fd_to_filename' in libc expects it. | ||||||
|  |       ("dev/fd"      ("/hurd/magic"    "--directory" "fd")  #o555) | ||||||
|  | 
 | ||||||
|       ("dev/tty1"    ("/hurd/term"     "/dev/tty1" "hurdio" "/dev/vcs/1/console") |       ("dev/tty1"    ("/hurd/term"     "/dev/tty1" "hurdio" "/dev/vcs/1/console") | ||||||
|                                                             #o666) |                                                             #o666) | ||||||
|       ("dev/tty2"    ("/hurd/term"     "/dev/tty2" "hurdio" "/dev/vcs/2/console") |       ("dev/tty2"    ("/hurd/term"     "/dev/tty2" "hurdio" "/dev/vcs/2/console") | ||||||
|  | @ -240,7 +243,6 @@ set." | ||||||
|   (for-each scope-set-translator devices) |   (for-each scope-set-translator devices) | ||||||
| 
 | 
 | ||||||
|   (false-if-EEXIST (symlink "/dev/random" (scope "dev/urandom"))) |   (false-if-EEXIST (symlink "/dev/random" (scope "dev/urandom"))) | ||||||
|   (mkdir* "dev/fd") |  | ||||||
|   (false-if-EEXIST (symlink "/dev/fd/0" (scope "dev/stdin"))) |   (false-if-EEXIST (symlink "/dev/fd/0" (scope "dev/stdin"))) | ||||||
|   (false-if-EEXIST (symlink "/dev/fd/1" (scope "dev/stdout"))) |   (false-if-EEXIST (symlink "/dev/fd/1" (scope "dev/stdout"))) | ||||||
|   (false-if-EEXIST (symlink "/dev/fd/2" (scope "dev/stderr"))) |   (false-if-EEXIST (symlink "/dev/fd/2" (scope "dev/stderr"))) | ||||||
|  |  | ||||||
		Reference in a new issue