mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
scripts: system: Add 'container' action.
* guix/scripts/system.scm (show-help): Display 'container' action. (system-derivation-for-action, guix-system): Add 'container' case. (perform-action): Skip GRUB config generation when building a container. * doc/guix.texi (Invoking guix system): Document it.
This commit is contained in:
parent
8e5999e0b0
commit
1c8a81b1af
3 changed files with 40 additions and 7 deletions
|
@ -108,7 +108,12 @@ that will be shared with the host system."
|
|||
(setenv "TMPDIR" "/tmp")
|
||||
(setenv "GUIX_NEW_SYSTEM" #$os-drv)
|
||||
(for-each mkdir-p '("/run" "/bin" "/etc" "/home" "/var"))
|
||||
(primitive-load (string-append #$os-drv "/boot"))))))
|
||||
(primitive-load (string-append #$os-drv "/boot")))
|
||||
;; A range of 65536 uid/gids is used to cover 16 bits worth of
|
||||
;; users and groups, which is sufficient for most cases.
|
||||
;;
|
||||
;; See: http://www.freedesktop.org/software/systemd/man/systemd-nspawn.html#--private-users=
|
||||
#:host-uids 65536)))
|
||||
|
||||
(gexp->script "run-container" script
|
||||
#:modules '((ice-9 match)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue