diff options
author | Marius Bakke <marius@gnu.org> | 2022-09-01 16:24:18 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-09-01 16:24:18 +0200 |
commit | c4ce54055a75c951f69d1241afc023ddebaf8b4f (patch) | |
tree | fd1f713120b7cfb567eb6edd34601df3f85112a1 /guix/scripts/system.scm | |
parent | cd782ad7e4aee8e2f5bd7fec03f14bdf3175fb80 (diff) | |
parent | 4f7f4e82e1f63f49216ee11dcfa67123ef940fcd (diff) |
Merge branch 'master' into staging
Diffstat (limited to 'guix/scripts/system.scm')
-rw-r--r-- | guix/scripts/system.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 443e9d3282..4bcf789703 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -41,6 +41,7 @@ #:use-module (guix grafts) #:use-module (guix gexp) #:use-module (guix derivations) + #:use-module (guix diagnostics) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix monads) @@ -1257,7 +1258,10 @@ resulting from command-line parsing." (size image-size) (volatile-root? volatile?) (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 ((first second) second) (_ #f))) |