Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IB_IMG_DIR Variable #1

Open
MotionDesignStudio opened this issue Apr 16, 2014 · 3 comments
Open

IB_IMG_DIR Variable #1

MotionDesignStudio opened this issue Apr 16, 2014 · 3 comments

Comments

@MotionDesignStudio
Copy link

I tried changing the directory for the iso within the isodetect.cfg file

Directory containing ISO images

IB_IMG_DIR="/boot/iso"

And

Directory containing ISO images

IB_IMG_DIR=/boot/iso

I even tried within Grub2 and I did both Grub2 and within the isodetect.cfg file at the dame time.

menuentry "Scan all devices for bootable images" {
set IB_AUTOSCAN=true
set IB_IMG_DIR=/boot/iso
export IB_AUTOSCAN
export IB_IMG_DIR
configfile /mnt/boot/grub/isodetect.cfg
}

Nothing worked, It defaulted searching to the img folder located on the root of the usb stick.

@infinity0
Copy link
Owner

Do you have a /boot/grub/grubenv file that overrides these values? The first time this script is run, it will create such a file, and load the variables from it subsequently. The idea was so you could configure it via that file, instead of editing the main code.

Perhaps this behaviour is not the most intuitive, and I overlooked documenting it. I'll be happy to accept a patch, or suggestions on how to make it better.

@MotionDesignStudio
Copy link
Author

It is a great easy solution that is not that intimidating. I would like to modify the README.rst file. And update it. I have no idea how to do this. I can add this documentation and the structure of the location of the file need a little documentation.

I.E.
IB_IMG_DIR=boot/iso

The location on the usb starts without a "/" and ends without a "/" I notice you add the trailing "/" in the code here.

for _iso_scandir__iso in "$1$IB_IMG_DIR"/*.iso; do

I also have a list of bootable iso images. Below are my menuentrys using Grub2 and titles from Grub4dos.

menuentry "netboot.me" {
loopback loop (hd0,1)/boot/iso/netbootme.iso
linux16 (loop)/GPXE.KRN
}

menuentry "Parted Magic ISO" {
loopback loop /boot/iso/pmagic_2013_08_01.iso
gfxpayload=800x600
linux (loop)/pmagic/bzImage findiso=/pmagic_2013_05_01.iso iso_location=/boot/iso/ isoloop=/boot/iso/pmagic_2013_08_01.iso edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw sleep=0 loglevel=0 keymap=us
initrd (loop)/pmagic/initrd.img
}

menuentry "Boot Hardware Detection Tool 0.3.6" {
linux16 /boot/iso/memdisk iso
initrd16 /boot/iso/hdt-0.3.6.iso
}

menuentry "FreeDOS 1.1 Base" {
set isofile="/boot/iso/fd11src.iso"
linux16 /boot/iso/memdisk iso
initrd16 (hd0,1)$isofile
}

menuentry "AVG Rescue CD" {
gfxpayload=800x600
loopback loop /boot/iso/avg_arl_cdi_all_120_140203a7055.iso
linux (loop)/isolinux/vmlinuz max_loop=255 init=linuxrc iso-scan/filename=/boot/iso/avg_arl_cdi_all_120_140203a7055.iso
initrd (loop)/isolinux/initrd.lzm
}

menuentry "slitaz slitaz-3.0-xvesa" {
loopback loop /boot/iso/slitaz-3.0-xvesa.iso
gfxpayload=800x600
linux (loop)/boot/bzImage isofrom=/dev/disk/by-uuid/1662-5E2F/boot/iso/slitaz-3.0-xvesa.iso boot=live quiet noeject noprompt
initrd (loop)/boot/rootfs.gz
}

/// GRUB4DOS

title Hirens.BootCD.15.2 II
find --set-root /boot/iso/Hirens.BootCD.15.2.iso
map /boot/iso/Hirens.BootCD.15.2.iso (hd32)
map --hook
chainloader (hd32)

It tried to boot the following unsuccessfully.

Load SG2D....kav_rescue_10.iso it start off on a black screen.

"Press any key to enter the menu.." pressing any keys does nothing and the after 10 seconds it returns to the Grub menu.

I love what you have created. I would love to help you maximize how many O.S. we can load.

@infinity0
Copy link
Owner

Hey, thanks for the interest! This link might be of help in learning how to use git and github: https://help.github.com/articles/fork-a-repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants