for statements allowed outside menuentries?
This is a question for Marco Gerards I suppose.
I was asking myself if in grub2 code I was allowed to do:
for (part in partitions) {
menuentry($part) {
whatever($part.grub_string);
}}
or if it was all restricted to for inside menuentries like:
menuentry() {
for (hd in harddisks) {
whatever hd
}
}adrian15
Quoted 11 lines · adrian15 <[email protected]> writes:
This is a question for Marco Gerards I suppose.
I was asking myself if in grub2 code I was allowed to do:
for (part in partitions) {
menuentry($part) { whatever($part.grub_string); }}
This is something I proposed a while ago. I want to make this possible so it will become easy to generate meny entries.
--
Marco