all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shyam Saran <syamsaran12345@gmail.com>
To: 49961@debbugs.gnu.org
Subject: bug#49961: Need support for booting from installation iso file directly for multiboot project
Date: Mon, 9 Aug 2021 21:32:39 +0530	[thread overview]
Message-ID: <CABVJY8pTMHbcY+Ya4Cf_4trSq_XAE2CrW=HPbyD1oxUt3aPHTA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1599 bytes --]

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

<src>
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
</src>



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

[-- Attachment #1.2: Type: text/html, Size: 2809 bytes --]

[-- Attachment #2: install-generic.cfg --]
[-- Type: application/octet-stream, Size: 439 bytes --]

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

                 reply	other threads:[~2021-08-09 16:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABVJY8pTMHbcY+Ya4Cf_4trSq_XAE2CrW=HPbyD1oxUt3aPHTA@mail.gmail.com' \
    --to=syamsaran12345@gmail.com \
    --cc=49961@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.