summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>2020-04-05 08:39:20 +0200
committerLudovic Courtès <ludo@gnu.org>2020-04-11 21:01:09 +0200
commit379d0f51841f808d456b885824b50949d0939bd9 (patch)
treeab8ed84d80b386490ff69f60c50d845f4b641dfe /gnu/system
parenta9f7993ea719c5368ee3e64b813b169eece4e6a1 (diff)
downloadpatches-379d0f51841f808d456b885824b50949d0939bd9.tar
patches-379d0f51841f808d456b885824b50949d0939bd9.tar.gz
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.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/hurd.scm14
1 files changed, 12 insertions, 2 deletions
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index 0728ce8603..03c49d472f 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -72,6 +72,14 @@ menuentry \"GNU\" {
#+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 @@ menuentry \"GNU\" {
("/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