glim
glim copied to clipboard
How to have iso folder on a different partition?
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}"
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!