for isofile in $isopath/arch-anywhere-*-dual.iso; do
  if [ -e "$isofile" ]; then
    regexp --set=isoname "$isopath/(.*)" "$isofile"
    submenu "$isoname ->" "$isofile" {
      loopback loop "$iso_path"
      menuentry "Arch Linux Anywhere (i686)" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop"
        linux (loop)/arch/boot/i686/vmlinuz $bootoptions
        initrd (loop)/arch/boot/i686/archiso.img
      }
      menuentry "Arch Linux Anywhere (x86_64)" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop"
        linux (loop)/arch/boot/x86_64/vmlinuz $bootoptions
        initrd (loop)/arch/boot/x86_64/archiso.img
      }
    }
  fi
done
