Advertisement
Guest User

Untitled

a guest
Jul 27th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. (define-module (gnu system serinstall)
  2. #:use-module (gnu system)
  3. #:use-module (gnu system install)
  4. #:use-module (gnu services base)
  5. #:use-module (gnu bootloader)
  6. #:use-module (gnu bootloader grub)
  7. #:use-module (nongnu system install)
  8. #:use-module (guix gexp)
  9. #:export (installation-os-serial))
  10.  
  11. (define installation-os-serial
  12. (operating-system
  13. (inherit installation-os)
  14. (bootloader (bootloader-configuration
  15. (bootloader grub-bootloader)
  16. (terminal-outputs 'serial_0)
  17. (terminal-inputs 'serial_0)
  18. (serial-unit 0)
  19. (serial-speed 115200)))
  20. (kernel-arguments '("console=ttyS0,115200n8"))
  21. (services
  22. (cons
  23. (agetty-service (agetty-configuration
  24. (extra-options '("-L"))
  25. (term "vt100")
  26. (tty "ttyS0")
  27. (baud-rate "115200")
  28. (auto-login "root")
  29. (login-pause? #t)))
  30. %installation-services))))
  31.  
  32. installation-os-serial
  33.  
  34. # guix system disk-image /home/apfel/custom-install-disk.scm
  35. /home/apfel/custom-install-disk.scm:23:6: error: %installation-services: unbound variable
  36. hint: Did you forget `(use-modules (gnu system install))'?
  37.  
  38. > this error make sense, %installation-services are not exported. But how can i do this then?
  39. > i use the guix package manager on a gentoo box to create this image.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement