From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qJxeBz2tVGB9cgAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 13:55:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kP0oAz2tVGAMFQAAB5/wlQ (envelope-from ) for ; Fri, 19 Mar 2021 13:55:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8128E2D916 for ; Fri, 19 Mar 2021 14:55:08 +0100 (CET) Received: from localhost ([::1]:58602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNFaj-0003GN-VC for larch@yhetil.org; Fri, 19 Mar 2021 09:55:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNFZI-0001L7-MW for help-guix@gnu.org; Fri, 19 Mar 2021 09:53:36 -0400 Received: from vimdzmsp-sfwd01.bluewin.ch ([195.186.120.131]:48432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNFZF-0001fg-7v for help-guix@gnu.org; Fri, 19 Mar 2021 09:53:36 -0400 Received: from bluewin.ch ([85.5.44.62]) by vimdzmsp-sfwd01.bluewin.ch Swisscom AG with ESMTPA id NFZ8lB0eJcbgyNFZ9lLFju; Fri, 19 Mar 2021 14:53:27 +0100 X-Bluewin-Spam-Analysis: v=2.4 cv=Yep4Wydf c=1 sm=1 tr=0 ts=6054acd7 a=bLoAJnPGBKLbGpzEBMhwHQ==:117 a=HNP6Z1q3FbqKczTbKiUA:9 a=QEXdDO2ut3YA:10 a=nBD1JqfMwiglFFupT_YA:9 a=8eCaFvJ2RJdFEsqJzg4A:9 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.5.44.62] Epoch[1616162007] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Fri, 19 Mar 2021 14:53:26 +0100 From: Fulbert To: help-guix@gnu.org Subject: guix configuration problem : bootloader "menu-entry" Message-ID: Mail-Followup-To: help-guix@gnu.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pU6F0cIuTdDzMXXZ" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfJ9IJdwedVN+BjEUvUj6p6MCOLPAN1esrzFBaqHiIsNIvjs+1ayufAXg0OdwmKNNTmbplUXuDU+ZiKVuFA5bSnRQNCUVdWzMM/GVxN8Uz8EDf9DHztKq Zlse/Q9slqC3O/Kht0F3iDzwiKROON8tRVQtInl1kHzNDSNP1DgbadQI Received-SPF: pass client-ip=195.186.120.131; envelope-from=fulbert@bluewin.ch; helo=vimdzmsp-sfwd01.bluewin.ch X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616162108; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8dnaYqDvWX2rmPKc16M6VtTQUcBqaTFXT/WtKUgvS68=; b=gO5UWGlwd5ugsGVOYBYgePo1usn05x2SYsmSJ/tyxEGhRgePL4zcYbW8fJfdZcpatH9mBL hYp3d5FN6bRxY/dikhK0Ny5+EcbA+S2MEdj03XguYxd76ZLJ/Cz+Hwh13IN2S+sRh7EJG9 4+TpE1TL9ONfSX2wkPpdV85QwlxIzIhDW5qyhF1rPjpiAdvdXlOfTxkjTl+GzbuVm4L1+U INAkRJtJdQAJI+7VInThOeipds1LO/vyZzIMsS00kXIRj75LgNa9Z4nXd3M1OtX34FJ5I/ PWXa6lRJX3nowVhwaAU3zhaoLbGKpDCq34wGaRed3Z0dYoHKwO+JDvfsI5KaLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616162108; a=rsa-sha256; cv=none; b=ufxt17KN78vai4Us/15Fpk5OeEIR5dJy9ghHr4d2UPtKM7iwF7JAKZTH87t0G+OSvuPF3n Rg9AbZYuOBqzIOvTc4rGCwamh1kut/i/sefjbGUW5cO/wN25zeJ4RBzCJspk73LBi1GxOu dkXL+zeBhporKQU4aEWVTSbfuY5GbulM8nEnfXfxCPo4d8CEDDq4Sn+1IJPGQXU8Cp9zC/ IaS+gTJXa/YaZ/FawaRS86D4NVg+/kUNpdmRrYQa2EnYOByNSulkd4tNuS6vfsMCE88YEr piFicDWe3hEisGbhh+61QcgN8x6NeJg86DAiGrqlwss2ZU/NTjlN5xr27n/nlQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 8128E2D916 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: fc2eA+nxjdSc --pU6F0cIuTdDzMXXZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello Guixers ! I am adding some `menu-entries` to my bootloader-configuration. >From `$ info "(guix)Bootloader Configuration"` ‘device’ (default: ‘#f’) The device where the kernel and initrd are to be found—i.e., for GRUB, “root” for this menu entry (*note (grub)root::). This may be a file system label (a string), a file system UUID (a bytevector, *note File Systems::), or ‘#f’, in which case the bootloader will search the device containing the file specified by the ‘linux’ field (*note (grub)search::). It must _not_ be an OS device name such as ‘/dev/sda1’. My problem is that `device` (or no device at all) does not seem to work as expected. Whatever the `device`, guix produces an identical `search --file…` grub menuentry. Attached are 3 configuration test entries and their resulting `menuentry` in grub.cfg. Not sure how to produce a "bytevector" for the UUID though, but at least the test with a label (literal string) should produce something like : "search --label --set debian-stable" Correct ? Or do I miss something ?! Thanks for you time ! --pU6F0cIuTdDzMXXZ Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="configuration.scm.extract" (menu-entries (list (menu-entry (label "TEST LABEL") (device "debian-stable") (linux "/boot/vmlinuz-4.19.0-14-amd64") (linux-arguments '("root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro quiet")) (initrd "/boot/initrd.img-4.19.0-14-amd64")) (menu-entry (label "TEST UUID") (device "2b5cc508-e2ea-4c43-a1c4-2532553af654") (linux "/boot/vmlinuz-4.19.0-14-amd64") (linux-arguments '("root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro quiet")) (initrd "/boot/initrd.img-4.19.0-14-amd64")) (menu-entry (label "TEST NO DEVICE") (linux "/boot/vmlinuz-4.19.0-14-amd64") (linux-arguments '("root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro single")) (initrd "/boot/initrd.img-4.19.0-14-amd64")))) --pU6F0cIuTdDzMXXZ Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="grub.cfg.extract" menuentry "TEST LABEL" { search --file --set /boot/vmlinuz-4.19.0-14-amd64 linux /boot/vmlinuz-4.19.0-14-amd64 root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro quiet initrd /boot/initrd.img-4.19.0-14-amd64 } menuentry "TEST UUID" { search --file --set /boot/vmlinuz-4.19.0-14-amd64 linux /boot/vmlinuz-4.19.0-14-amd64 root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro quiet initrd /boot/initrd.img-4.19.0-14-amd64 } menuentry "TEST NO DEVICE" { search --file --set /boot/vmlinuz-4.19.0-14-amd64 linux /boot/vmlinuz-4.19.0-14-amd64 root=UUID=2b5cc508-e2ea-4c43-a1c4-2532553af654 ro single initrd /boot/initrd.img-4.19.0-14-amd64 } --pU6F0cIuTdDzMXXZ--