From unknown Wed Jun 18 23:04:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49961 <49961@debbugs.gnu.org> To: bug#49961 <49961@debbugs.gnu.org> Subject: Status: Need support for booting from installation iso file directly for multiboot project Reply-To: bug#49961 <49961@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:15 +0000 retitle 49961 Need support for booting from installation iso file directly = for multiboot project reassign 49961 guix submitter 49961 Shyam Saran severity 49961 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 12:03:03 2021 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: Subject: Need support for booting from installation iso file directly for multiboot project To: bug-guix@gnu.org 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-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --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--