mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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
1 changed files with 3 additions and 2 deletions
|
@ -187,8 +187,9 @@ (define loader
|
||||||
;; 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 a new issue