You are not logged in.
Not wanting to necrobump this old thread, I opted to ask the question again here. Has anyone successfully booted the arch iso (recovery purposes) from a grub or grub2 menu? I added the following to my /boot/grub/grub.cfg but it errors out on me and doesn't boot. Advice is appreciated.
menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
initrd (loop)/arch/boot/x86_64/archiso.img
}Here is the error after booting:
Decompressing Linux... Parsing ELF... done.
Booting the kernel.
ash: closing paren expected
:: Starting [udev]
:: Triggering uevents...done.
:: Running Hook [memdisk]
:: Running Hook [archiso]
:: Running Hook [archiso_pxe_nbd]
:: Running Hook [archiso_loop_mnt]
:: Waiting for boot device...
Waiting 30 seconds for device /dev/disk/by-label/ ...
ERROR: boot device didn't show up after 30 seconds...
Falling back to interactive prompt
You can try to fix the problem manually, log out when you are finished
sh: can't access tty: job control turned off
[ramfs /]#Last edited by graysky (2012-02-03 14:41:41)
Offline
archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loopearlymodules=loop, is just a workaround for 2011.08.19.
Offline
archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loopearlymodules=loop, is just a workaround for 2011.08.19.
Thanks for the reply. I'm a little confused, can you spoon feed me ![]()
Your advice:
archisolabel=ARCH_201108
img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED%
img_loop=/%PATH_TO_ISO_ON_FS_LABEL%/archlinux-2011.08.19-netinstall-x86_64.iso earlymodules=loop
My entry for grub2:
menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
initrd (loop)/arch/boot/x86_64/archiso.img
}
Offline
just set the "linux" command right:
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_label=%FS_LABEL_WHERE_ISO_IS_LOCATED% img_loop=$isofile earlymodules=loopJust change img_label= to match your fs-label, if this is not set, set to any valid value.
Offline
@djgera - thanks for the suggestion. Here is what I have but I still get the error described above:
menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_label=data img_loop=$isofile earlymodules=loop
initrd (loop)/arch/boot/x86_64/archiso.img
}Offline
same error? Is not possible...
how looks parsed cmdline?
execute:
cat /proc/cmdline
blkid
ls -l /dev/disk/by-labelOffline
<<< Posted removed by author >>>
Last edited by graysky (2012-02-03 14:41:21)
Offline
Not of your system... ![]()
Anyway now I remember that img_label= is not suported in 2011.08.19, I implemented this one month later, so use img_dev=/dev/sda7 instead.
PS: I suggest to use latest testiso
http://releng.archlinux.org
Last edited by djgera (2012-02-03 13:29:31)
Offline
Success! Thanks!
menuentry "Archlinux-2011.08.19-netinstall-x86_64.iso" {
set isofile="/archives/archlinux-2011.08.19-netinstall-x86_64.iso"
loopback loop (hd0,7)$isofile
#linux (loop)/arch/boot/x86_64/vmlinuz boot=arch findiso=$isofile
linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=ARCH_201108 img_dev=/dev/sda7 img_loop=$isofile earlymodules=loop
initrd (loop)/arch/boot/x86_64/archiso.img
}I updated the wiki: https://wiki.archlinux.org/index.php/GR … From_Grub2
Offline
Great!
Offline