From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cufuL-0002Hf-8K for guix-patches@gnu.org; Sun, 02 Apr 2017 09:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cufuI-0006H0-60 for guix-patches@gnu.org; Sun, 02 Apr 2017 09:51:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cufuI-0006Gr-1r for guix-patches@gnu.org; Sun, 02 Apr 2017 09:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cufuH-0000Sn-RJ for guix-patches@gnu.org; Sun, 02 Apr 2017 09:51:01 -0400 Subject: bug#26339: [PATCH 00/18] wip: Support non grub bootloaders. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuftR-0002CX-Jy for guix-patches@gnu.org; Sun, 02 Apr 2017 09:50:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuftN-0005ho-Kx for guix-patches@gnu.org; Sun, 02 Apr 2017 09:50:09 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:33654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuftN-0005hf-Dk for guix-patches@gnu.org; Sun, 02 Apr 2017 09:50:05 -0400 Received: by mail-wr0-x229.google.com with SMTP id w43so135076293wrb.0 for ; Sun, 02 Apr 2017 06:50:03 -0700 (PDT) From: Mathieu Othacehe Date: Sun, 2 Apr 2017 15:49:16 +0200 Message-Id: <20170402134916.2871-1-m.othacehe@gmail.com> 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: 26339@debbugs.gnu.org Hi, Here's a first draft of my work on bootloaders. Basically, I rebased David patches and started to work on top of it. I adapted system commands "init", "reconfigure" and "switch-generation" to the new bootloader API. All of this is functional with my basic configuration. Don't hesitate to test this out and comment ! I still have to update documentation. I also left untested UEFI related stuff. Thanks, Mathieu David Craven (4): system: Pass to grub. system: Add extlinux support. scripts: system: Rename --no-grub option to --no-bootloader. bootloader: Add install procedures and use them. Mathieu Othacehe (14): system: Rename operating-system-grub.cfg to operating-system-bootcfg. vm: Reword grub.cfg to boot.cfg system: Add bootloader type. bootloader: Stop using grub module. scripts: system: Move save-load-path-excursion and save-environment-excursion macros to the top. system: Rename kernel->grub-label to kernel->boot-label. bootloader: Add device and type to bootloader-configuration record. system: Rename grub-device to fs->boot-device. scripts: system: Remove unused variables. scripts: system: Rename grub? and install-grub? to bootloader? and install-bootloader?. scripts: system: Adapt "reconfigure" to new bootloader API. scripts: system: Adapt "init" to new bootloader API. scripts: system: Adapt "switch-generation" to new bootloader API. scripts: system: Display bootloader device and type in "list-generations". gnu.scm | 3 +- gnu/build/install.scm | 36 ++--- gnu/build/vm.scm | 22 +-- gnu/local.mk | 1 + gnu/system.scm | 72 +++++++--- gnu/system/bootloader.scm | 253 +++++++++++++++++++++++++++++++++ gnu/system/grub.scm | 41 ++++-- gnu/system/vm.scm | 52 ++++--- gnu/tests.scm | 3 +- gnu/tests/nfs.scm | 3 +- gnu/tests/web.scm | 2 +- guix/scripts/system.scm | 353 ++++++++++++++++++++++++++-------------------- tests/guix-system.sh | 2 - tests/system.scm | 2 - 14 files changed, 592 insertions(+), 253 deletions(-) create mode 100644 gnu/system/bootloader.scm -- 2.12.2