From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +NWdKtFSEWGTQAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 18:07:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4FKNJtFSEWEsSgAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 16:07:45 +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 CCB0F2A32B for ; Mon, 9 Aug 2021 18:07:44 +0200 (CEST) Received: from localhost ([::1]:35572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD7oV-0000qI-PO for larch@yhetil.org; Mon, 09 Aug 2021 12:07:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7kx-00040d-7c for bug-guix@gnu.org; Mon, 09 Aug 2021 12:04:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD7kx-0007Ow-0R for bug-guix@gnu.org; Mon, 09 Aug 2021 12:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mD7kw-0005t7-Ly for bug-guix@gnu.org; Mon, 09 Aug 2021 12:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49961: Need support for booting from installation iso file directly for multiboot project Resent-From: Shyam Saran Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 09 Aug 2021 16:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49961 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49961@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162852498322525 (code B ref -1); Mon, 09 Aug 2021 16:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 16:03:03 +0000 Received: from localhost ([127.0.0.1]:57589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7jy-0005rD-Uo for submit@debbugs.gnu.org; Mon, 09 Aug 2021 12:03:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:39702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7jt-0005qe-CJ for submit@debbugs.gnu.org; Mon, 09 Aug 2021 12:03:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7jq-0001Em-UZ for bug-guix@gnu.org; Mon, 09 Aug 2021 12:02:55 -0400 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:37452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD7jp-0006e0-4I for bug-guix@gnu.org; Mon, 09 Aug 2021 12:02:54 -0400 Received: by mail-ej1-x641.google.com with SMTP id h9so9032825ejs.4 for ; Mon, 09 Aug 2021 09:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=AlJ3mrrYyWyMu73Rk7m6yCkbRAV3+rt1+ErmD3Kj4lg=; b=KOg/afieh31q+fVFj3o1G0scyRZOuGB3HjoKZrCPpxRRRcNAI7XncP+TWzc2oxui6P qhRtI1pT8JOrKZqOERVYIxnAIOC+ZV/2zc2LWYhVVjhOPQgRvoW413sk/Ta8B6pNOg21 H7c9m4dSA06KFgZ1TGpbzS0D/2trkobNH+A3hOevOYMVBVjtjkG5k2gCJ4DYewY777Gj gHTDdKk1ZEMpMgGeBNCUp6elOoLNDEAitcSyx7AuVsq9DI0xxzW19wq9wiAqgBlkoLPP V1Bt9a7MDum8NMgtcataJ+/XpuJMWCcxui6KaoY/x8ebbPdZ20bQrnDOL/b7H8rwA3Nq 1UWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AlJ3mrrYyWyMu73Rk7m6yCkbRAV3+rt1+ErmD3Kj4lg=; b=k01gSjWyd2ZfskrA0YArffNprT1YSl3PgofTEQ23feIur4muvMK6YBctWr9S1fcbM6 9zeM3sBs7y4aA3bWj2jk4FpO3tuu67NkaT68YmvTBDQPExcmcYdCOPHwqGRGLSfgygbi d8nLfWxUclRqY5jWN08l9G3xMIYkwZ+5JFcPBWSOfd5nkomL3wnychgC7ICyvp3AHFTg WOqSnjq5v3ghezN0pDEsb5xMuj06oYB0XtlWL0qZlv+7XnnHDN4p4vmpZLu/PEhDPipW HpArIHDzKSOhDltVRI0faRAeQgHYTOcQZ5S1ctYS6WTeikgwkSc8Q4G+Bi/hET2i/Tkq fHnw== X-Gm-Message-State: AOAM531Z84uR3cKMLUSRyEVgJStiXOwtPQ9T2kCXRF6cZZyG1XuPPlBO c59+3JnbNxMkDPyKt3pIFnlNzMTJEfGEg41bZQ85stN+V50= X-Google-Smtp-Source: ABdhPJzrgfklBMf+ovw+yAIQpwqq4dXIaK7v56F9cUvDFmssW57URy733/KmehCSmHWhWAsjekYZuK86GcnP4NHCVgc= X-Received: by 2002:a17:906:14c8:: with SMTP id y8mr23315944ejc.475.1628524970840; Mon, 09 Aug 2021 09:02:50 -0700 (PDT) MIME-Version: 1.0 From: Shyam Saran Date: Mon, 9 Aug 2021 21:32:39 +0530 Message-ID: Content-Type: multipart/mixed; boundary="00000000000065522a05c92284e0" Received-SPF: pass client-ip=2a00:1450:4864:20::641; envelope-from=syamsaran12345@gmail.com; helo=mail-ej1-x641.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628525265; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=5SoxWvLQhJ+2FL+T8/tL68TSMerKRZjJ/jwrcaCFVJc=; b=aI3dM+G4Epbx1t7XJ6HvI0EV9AB+ZjxZiXVbuh++xOAxaj30Ne8021RmVZU0/NA1/YOtCA uD/OGI5qwpXPiMzFFWA9w/7o7Mmc45BubJZxvrTXnFDMo5By8mKULOos0+0rQ9uSG/pxWR 0Yowe55R6bGDEWP0M6k+YZajsJOnT9jeBGcN6vReMzwLNmdZ2xB/aBcQMX70azFQZu8YAS riltJrMt/Wm4XUDI57yPCBoK+YhTA2Cxv0JRw9KzHe3EYCDuMT6PO1Xm7TwTHtPSTrEQNx 9x7C85X3Fj3t7xEh9b+fRx0/PIjAvvC83E3WY2TEwI7gNQzU77l6VdBV+sEHTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628525265; a=rsa-sha256; cv=none; b=mjFwrxlDcy9dSmNt4RgMwFcx20Nj8J3JYSjv73FeRQlNbsg8+oTnvWFTKWZULah7GwDVWg PYlx1Zao4ci+obb/lAgeBvq3bdCM8KHGEmaEbK0iQKbff1R/EL2jbraChzy6Qao9mEeqK0 /18sqKiygn0pFLwY+s5ExIu15msKIQ8ErLFQH6CJ/7dUb1zIunRjrkqbPAt7xP9vol54SZ 4vh4GG0dLZap6vmjqMuJpZ4cJnc0q9o5zAvi2ktR4zao8rOsdO07pQeThjgkEN5wO5gEwW MRPa2NyH4hcb8ta555J9UcRtnupDZuTBlk2HvrOGKcIDOulUkW00R7bN9ZsrRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b="KOg/afie"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b="KOg/afie"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: CCB0F2A32B X-Spam-Score: 0.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: zc/Fv+m49aNV --00000000000065522a05c92284e0 Content-Type: multipart/alternative; boundary="00000000000065522705c92284de" --00000000000065522705c92284de Content-Type: text/plain; charset="UTF-8" Need support for loopback.cfg like Ubuntu distribution to boot from ios files for multiboot [https://github.com/eengstrom/multiboot/blob/master/grub/grub.cfg] Here tried similar thing with installation iso and its /boot/grub/grub.cfg in https://github.com/aguslr/multibootusb For this added file mbusb.d/guix-system.d/install-generic.cfg with content for isofile in $isopath/*/guix-system-install-*.iso $isopath/guix-system-install-*.iso; do if [ -e "$isofile" ]; then regexp --set=isoname "$isopath/(.*)" "$isofile" submenu "$isoname (grub.cfg) ->" "$isofile" { iso_path="$2" export iso_path search --set=root --file "$iso_path" loopback loop "$iso_path" root=(loop) configfile /boot/grub/grub.cfg loopback --delete loop } fi done With this got grub entry like below setparam 'Guixsd/guix-system-install-1.2.0.x86_64-linux.iso (loopbak.cfg) ->' '/boot/isos/guix-system-install-1.2.0.x86_64-linux.iso' iso_path="$2" export iso_pathj search --set=root --file "$iso_path" loopback loop "$iso_path" root=(loop) configile /boot/grub/grub.cfg loopback --delete loop After booting from here, getting menu from ios's /boot/grub/grub.cfg where --root=31393730-3031-3031-3139-343934363833 When I boot from here, getting below error waiting for partition '31393730-3031-3031-3139-343934363833' to appear ice-9/boot-9.scm:1669:16: In procedure raise-excepion: failed to resolve partition "31393730-3031-3031-3139-343934363833" and finally it shows guile scheme prompt scheme@(guile-user)> Thanks -- /syam --00000000000065522705c92284de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Need support for loopba= ck.cfg
like Ubuntu distribution to boot from ios files for <= br>


Here tried si= milar thing with installation iso and its /boot/grub/grub.cfg

For this
added fi= le mbusb.d/guix-system.d/install-generic.cfg

with = content

<src>
for isofile in $isop= ath/*/guix-system-install-*.iso $isopath/guix-system-install-*.iso; do
= =C2=A0 if [ -e "$isofile" ]; then
=C2=A0 =C2=A0 regexp --set= =3Disoname "$isopath/(.*)" "$isofile"
=C2=A0 =C2=A0 = submenu "$isoname (grub.cfg) ->" "$isofile" {
=C2= =A0 =C2=A0 =C2=A0 iso_path=3D"$2"
=C2=A0 =C2=A0 =C2=A0 export = iso_path
=C2=A0 =C2=A0 =C2=A0 search --set=3Droot --file "$iso_path= "
=C2=A0 =C2=A0 =C2=A0 loopback loop "$iso_path"
=C2= =A0 =C2=A0 =C2=A0 root=3D(loop)
=C2=A0 =C2=A0 =C2=A0 configfile /boot/gr= ub/grub.cfg
=C2=A0 =C2=A0 =C2=A0 loopback --delete loop
=C2=A0 =C2=A0= }
=C2=A0 fi
done

With this got grub entry l= ike below

setparam 'Guixsd/guix-system-install= -1.2.0.x86_64-linux.iso (loopbak.cfg) ->' '/boot/isos/guix-syste= m-install-1.2.0.x86_64-linux.iso'

=C2=A0 iso_p= ath=3D"$2"
=C2=A0 export iso_pathj
=C2=A0 sea= rch --set=3Droot --file "$iso_path"
=C2=A0 loopback loo= p "$iso_path"
=C2=A0 root=3D(loop)
=C2=A0 con= figile /boot/grub/grub.cfg
=C2=A0 loopback --delete loop
</src>



After= booting from here, getting menu from ios's /boot/grub/grub.cfg
where --root=3D31393730-3031-3031-3139-343934363833

=
When I boot from here, getting below error


waiting for partition '31393730-3031-3031-3139-3439343= 63833' to appear
ice-9/boot-9.scm:1669:16: In procedure raise= -excepion:
failed to resolve partition "31393730-3031-3031-3= 139-343934363833"

and finally it shows gu= ile scheme prompt

scheme@(guile-user)>




Thanks
--
/syam











--00000000000065522705c92284de-- --00000000000065522a05c92284e0 Content-Type: application/octet-stream; name="install-generic.cfg" Content-Disposition: attachment; filename="install-generic.cfg" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ks4tnrzw0 Zm9yIGlzb2ZpbGUgaW4gJGlzb3BhdGgvKi9ndWl4LXN5c3RlbS1pbnN0YWxsLSouaXNvICRpc29w YXRoL2d1aXgtc3lzdGVtLWluc3RhbGwtKi5pc287IGRvCiAgaWYgWyAtZSAiJGlzb2ZpbGUiIF07 IHRoZW4KICAgIHJlZ2V4cCAtLXNldD1pc29uYW1lICIkaXNvcGF0aC8oLiopIiAiJGlzb2ZpbGUi CiAgICBzdWJtZW51ICIkaXNvbmFtZSAoZ3J1Yi5jZmcpIC0+IiAiJGlzb2ZpbGUiIHsKICAgICAg aXNvX3BhdGg9IiQyIgogICAgICBleHBvcnQgaXNvX3BhdGgKICAgICAgc2VhcmNoIC0tc2V0PXJv b3QgLS1maWxlICIkaXNvX3BhdGgiCiAgICAgIGxvb3BiYWNrIGxvb3AgIiRpc29fcGF0aCIKICAg ICAgcm9vdD0obG9vcCkKICAgICAgY29uZmlnZmlsZSAvYm9vdC9ncnViL2dydWIuY2ZnCiAgICAg IGxvb3BiYWNrIC0tZGVsZXRlIGxvb3AKICAgIH0KICBmaQpkb25lCg== --00000000000065522a05c92284e0--