glim icon indicating copy to clipboard operation
glim copied to clipboard

How to have iso folder on a different partition?

Open steve6375 opened this issue 5 years ago • 1 comments

I want to store ISOs on a 2nd NTFS partition.

If I change the main.cfg to use:

set isopath=(hd0,msdos2)/iso

then the menuentry's do not work because of regexp failing to get variables

  regexp \
    --set 1:isoname \
    --set 2:version \
    --set 3:arch \
    "^${isopath}/clonezilla/(clonezilla-live-(.+)-([^-]+)\.iso)\$" "${isofile}"

steve6375 avatar Mar 15 '19 10:03 steve6375

I found a way by setting root later on in main.cfg

set prefix=($root)/EFI/grub
#set isopath=/EFI/iso
set isopath=/iso
set root=hd0,msdos2

probe --set rootuuid --fs-uuid $root

# Required to have these available in other configfile files
export isopath
export theme
export isopath
export rootuuid


# Menu!

steve6375 avatar Mar 15 '19 10:03 steve6375