I want to put in a USB pendrive several ISO files (read only) or img files (read/write) and boots automatically by the file whose alphanumeric name is greater.Example: 1 USB pendrive. Grub2 installed in MBR of pendrive. This pendrive have two partitons and in the first partitions I put iso files or img files (inside this img or iso there is a small filesystem with a kernel and Linux files).The idea is to update the system by saving in the first partition a complete img file. In this way, grub2 will always boot with the new img/iso file and if it does not exist, bootwith the previous img/iso file. It's something like how the routers update the firmwareDoes anyone know how to configure Grub2 scripts to do this?Thanks.
Grub2 load automatic iso or img files in USB pendrive
grub2;usb drive;boot loader;iso