mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 07:00:32 -05:00
scripts: system: Check the image operating-system.
* guix/scripts/system.scm (process-action): Check that the provided image has a defined operating-system.
This commit is contained in:
parent
0518a88a4e
commit
6454164412
1 changed files with 5 additions and 1 deletions
|
@ -41,6 +41,7 @@ (define-module (guix scripts system)
|
||||||
#:use-module (guix grafts)
|
#:use-module (guix grafts)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix derivations)
|
#:use-module (guix derivations)
|
||||||
|
#:use-module (guix diagnostics)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix monads)
|
#:use-module (guix monads)
|
||||||
|
@ -1257,7 +1258,10 @@ (define save-provenance?
|
||||||
(size image-size)
|
(size image-size)
|
||||||
(volatile-root? volatile?)
|
(volatile-root? volatile?)
|
||||||
(shared-network? shared-network?))))
|
(shared-network? shared-network?))))
|
||||||
(os (image-operating-system image))
|
(os (or (image-operating-system image)
|
||||||
|
(raise
|
||||||
|
(formatted-message
|
||||||
|
(G_ "image lacks an operating-system")))))
|
||||||
(target-file (match args
|
(target-file (match args
|
||||||
((first second) second)
|
((first second) second)
|
||||||
(_ #f)))
|
(_ #f)))
|
||||||
|
|
Loading…
Reference in a new issue