* bug#49961: Need support for booting from installation iso file directly for multiboot project
@ 2021-08-09 16:02 Shyam Saran
0 siblings, 0 replies; only message in thread
From: Shyam Saran @ 2021-08-09 16:02 UTC (permalink / raw)
To: 49961
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-09 16:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 16:02 bug#49961: Need support for booting from installation iso file directly for multiboot project Shyam Saran
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).