mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
system: hurd: Add "/etc/fstab".
This allows running mount -o remount,rw / successfully. * gnu/system/hurd.scm (cross-hurd-image): Create a hard coded fstab and add it to hurd-os.
This commit is contained in:
parent
a9f7993ea7
commit
379d0f5184
1 changed files with 12 additions and 2 deletions
|
@ -72,6 +72,14 @@ (define grub.cfg
|
|||
#+mach #+mach #+hurd
|
||||
#+libc #+hurd))))))
|
||||
|
||||
(define fstab
|
||||
(plain-file "fstab"
|
||||
"# This file was generated from your Guix configuration. Any changes
|
||||
# will be lost upon reboot or reconfiguration.
|
||||
|
||||
/dev/hd0s1 / ext2 defaults
|
||||
"))
|
||||
|
||||
(define hurd-directives
|
||||
`((directory "/servers")
|
||||
,@(map (lambda (server)
|
||||
|
@ -94,13 +102,15 @@ (define hurd-directives
|
|||
("/hurd" -> ,(file-append (with-parameters ((%current-target-system
|
||||
"i586-pc-gnu"))
|
||||
hurd)
|
||||
"/hurd"))))
|
||||
"/hurd"))
|
||||
("/etc/fstab" -> ,fstab)))
|
||||
|
||||
(qemu-image #:file-system-type "ext2"
|
||||
#:file-system-options '("-o" "hurd")
|
||||
#:device-nodes 'hurd
|
||||
#:inputs `(("system" ,hurd-os)
|
||||
("grub.cfg" ,grub.cfg))
|
||||
("grub.cfg" ,grub.cfg)
|
||||
("fstab" , fstab))
|
||||
#:copy-inputs? #t
|
||||
#:os hurd-os
|
||||
#:bootcfg-drv grub.cfg
|
||||
|
|
Loading…
Reference in a new issue