From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#21224: guix system init --no-grub doesn't work Date: Mon, 10 Aug 2015 17:44:27 +0300 Message-ID: <87bnefyzhw.fsf@gmail.com> References: <87egjcqt3p.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOoK2-00009Y-Bc for bug-guix@gnu.org; Mon, 10 Aug 2015 10:45:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOoJz-0002pI-1S for bug-guix@gnu.org; Mon, 10 Aug 2015 10:45:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOoJy-0002on-Ud for bug-guix@gnu.org; Mon, 10 Aug 2015 10:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZOoJy-0008J6-CP for bug-guix@gnu.org; Mon, 10 Aug 2015 10:45:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87egjcqt3p.fsf@netris.org> (Mark H. Weaver's message of "Sun, 09 Aug 2015 13:17:30 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Mark H Weaver Cc: 21224@debbugs.gnu.org Mark H Weaver (2015-08-09 20:17 +0300) wrote: > I'm in the early stages of adding GuixSD for the Lemote Yeeloong, and so > for now would like to avoid getting grub working on the Yeeloong. So, > I tried running "guix system init config.scm /target --no-grub", and > this is what happens: > > /gnu/store/...-system > > initializing operating system under '/target'... > guix system: error: build failed: path `/gnu/store/...-grub.cfg' is not valid > > In the 'install' procedure in (guix scripts system), I tried changing: > > (maybe-copy grub.cfg) > > to: > > (mwhen grub? > (maybe-copy grub.cfg)) > > and then the command works, but almost nothing gets copied to /target. > In retrospect, this makes sense: as the comment says, the installer > works by copying the *closure* of grub.cfg. However, it fails when > --no-grub is passed, apparently because grub.cfg was not built. (This message is probably not very helpful but) AFAICT this bug was introduced by commit f245b03debfa05fa692e95769a9b7116200bf191. -- Alex