aguslr / multibootusb

A collection of GRUB files and scripts that will allow you to create a pendrive capable of booting different ISO files
https://mbusb.aguslr.com
GNU General Public License v3.0
571 stars 154 forks source link

Hiren's BootCD not showing up in menu #266

Open hackerncoder opened 4 years ago

hackerncoder commented 4 years ago

Hello! I am having troubles with HBCD as it wont show up on the menu. It is named HBCD_PE_x64.iso in the /boot/isos folder I originally ran the makeUSB.sh script with -e and the /dev/sdb. DBAN_2.3.0_i586 and Ubuntu-19.10-desktop-amd64 both show up.


HackerNCoder
hackerncoder commented 4 years ago

It seems the problem is the hbcd.d/generic.cfg is incorrect, it is outdated. I have tried updating it and a menu entry now appears, however it isn't working, it is just a blank screen. My code:

for isofile in $isopath/HBCD_PE*.iso; do
  if [ -e "$isofile" ]; then
    regexp --set=isoname "$isopath/(.*)" "$isofile"
    ## Skip ISOs with custom files
    if regexp "15.2" "$isofile"; then continue; fi
    menuentry "$isoname (memdisk)" "$isofile" {
          iso_path="$2"
          loopback loop "$iso_path"
      bootoptions="iso raw vmalloc=1300M"
      linux16 $prefix/memdisk $bootoptions
      initrd16 $iso_path
    }
  fi
done