scripts: system: Honor target argument.
authorMathieu Othacehe <othacehe@gnu.org>
Fri, 2 Oct 2020 07:53:45 +0000 (09:53 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Fri, 2 Oct 2020 08:03:29 +0000 (10:03 +0200)
commitbdbd8bf9054c88aaf694a08e49270c95e6adad27
tree135b1e5f4ea5a61a440aee026f52d47a151a2af6
parentcc346931523a7235a8093ec96f05412d5f2f468d
scripts: system: Honor target argument.

Since 313f492657f1d0863c641fa5ee7f5b7028e27c94 the target argument passed to
"guix system" was not honored for 'disk-image' command.

This forces the command line passed "target" to take precedence over the
"target" field of the <image> record returned by "os->image" procedure.

* guix/scripts/system.scm (system-derivation-for-action): Override the
"target" field of the "image" record using the "target" argument from the
command line.
guix/scripts/system.scm