From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7lQD-0007l1-HC for guix-patches@gnu.org; Mon, 08 May 2017 12:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7lQA-00077M-CP for guix-patches@gnu.org; Mon, 08 May 2017 12:22:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7lQA-00077I-9D for guix-patches@gnu.org; Mon, 08 May 2017 12:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7lQA-00043R-3w for guix-patches@gnu.org; Mon, 08 May 2017 12:22:02 -0400 Subject: bug#26339: [PATCH v3 6/9] scripts: system: Adapt "reconfigure" to new bootloader API. Resent-Message-ID: References: <20170506154154.17836-1-m.othacehe@gmail.com> <20170506154154.17836-7-m.othacehe@gmail.com> <20170507223332.612b3785@scratchpost.org> From: Mathieu Othacehe In-reply-to: <20170507223332.612b3785@scratchpost.org> Date: Mon, 08 May 2017 18:21:28 +0200 Message-ID: <87r2zzs4jb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Danny Milosavljevic Cc: 26339@debbugs.gnu.org Hi, > Hi Mathieu, > >> +(define* (install-bootloader install-procedure >> + #:key >> + bootcfg bootcfg-location >> + device target) > > Maybe "installer" instead of "install-procedure"? It's not that important but it reads better I think... > Ok for installer. > Hmm, importing (guix build utils) twice (on different sides, I guess)? Could use a comment... Actually it's something pretty common, grep "guix build utils" in gnu/services for example. > >> + (install-proc >> + (let ((procedure (bootloader-configuration-installer >> + (operating-system-bootloader os))) >> + (target (or target "/"))) >> + (install-bootloader-derivation procedure bootloader device target))) > > Here, I'd use "bootloader-installer" instead of "install-proc" - because this specific procedure could install lots of things - it's the main entry point in a sense. Ok for install-proc -> bootloader-installer. > > Otherwise LGTM! I also think the general approach is good. Nice ! Thanks, Mathieu