vm: 'expression->derivation-in-linux-vm' leads to a kernel panic upon failure.
Partially fixes <https://bugs.gnu.org/34276>. Reported by Tobias Geerinckx-Rice <me@tobias.gr>. * gnu/system/vm.scm (expression->derivation-in-linux-vm)[loader]: Call 'exit' when USER-BUILDER exits with a non-zero code.
This commit is contained in:
parent
a5c6a752fd
commit
e6c46ec42e
|
@ -187,8 +187,9 @@ made available under the /xchg CIFS share."
|
||||||
;; When USER-BUILDER succeeds, reboot (indicating a
|
;; When USER-BUILDER succeeds, reboot (indicating a
|
||||||
;; success), otherwise die, which causes a kernel panic
|
;; success), otherwise die, which causes a kernel panic
|
||||||
;; ("Attempted to kill init!").
|
;; ("Attempted to kill init!").
|
||||||
#~(when (zero? (system* #$user-builder))
|
#~(if (zero? (system* #$user-builder))
|
||||||
(reboot))))
|
(reboot)
|
||||||
|
(exit 1))))
|
||||||
|
|
||||||
(let ((initrd (or initrd
|
(let ((initrd (or initrd
|
||||||
(base-initrd file-systems
|
(base-initrd file-systems
|
||||||
|
|
Loading…
Reference in New Issue