I have clonezilla on my second partition. So that I can backup and recover without a stick etc. I want to use this solution on different types of PCs (diffent hardware, different image passwords etc., define this variables now in a script file in the second partition). But my problem is, that I want to get the PC-Type to set. At the moment I hardcode it in the grub.cfg as a variable and use it for the rest oft the grub.cfg. My plan is to put a file on my first partition and read it's contents with grub. Is this possible?
Hello, today I combined part of a rmprepusb tutorial with my grub.cfg. I readed in the web, that you can use the source command in grub.cfg. So I placed a file with my variables on my drive and searched it with search routine from here https://www.rmprepusb.com/tutorials/142---windows-restore-uefi so I got the file and the variables.
cu
F. :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have clonezilla on my second partition. So that I can backup and recover without a stick etc. I want to use this solution on different types of PCs (diffent hardware, different image passwords etc., define this variables now in a script file in the second partition). But my problem is, that I want to get the PC-Type to set. At the moment I hardcode it in the grub.cfg as a variable and use it for the rest oft the grub.cfg. My plan is to put a file on my first partition and read it's contents with grub. Is this possible?
Got his idea from here: https://www.rmprepusb.com/tutorials/142---windows-restore-uefi
They use a "tag"-File on the partition, but I want to read the content of the file, how can I achive this?
I like the script in the link, it is fantastic, they have a lot of fascinating stuff on their site.
Thanks for help :-)
cu
F. :-)
Check the grub manual. Not sure if the command "cat" works for you or not:
https://www.gnu.org/software/grub/manual/grub/grub.html#cat
Steven
Sound interesting, thanks! It is nothing connected directly with clonezilla. I want to create a clonezilla boot which is mostly variable driven
Hello, today I combined part of a rmprepusb tutorial with my grub.cfg. I readed in the web, that you can use the source command in grub.cfg. So I placed a file with my variables on my drive and searched it with search routine from here https://www.rmprepusb.com/tutorials/142---windows-restore-uefi so I got the file and the variables.
cu
F. :-)
OK. Thanks for sharing that.
Steven