I highlighted the Hardware Information menu entry and pressed 'e' to get this screen...
So it seems that a variable $grub_total_ram already exists.
I then made a \ventoy\ventoy_grub.cfg file on Partition 1 as follows:
menuentry 'Total Memory ' --class=custom {
echo $grub_total_ram MB
read
clear
}
menuentry '<-- Return to Ventoy menu [Esc]' --class=vtoyret VTOY_RET {
echo 'Return ...'
}
The read command just tells grub2 to wait for me to press Enter.
This means that I can now press F6 and choose the Total Memory option to quickly display the amount of memory in the system...
No comments:
Post a Comment