Skip to contentSkip to conversation

for statements allowed outside menuentries?

DISCUSSION adrian15 2 participants 2 messages Dec 11, 2006 – Dec 13, 2006

lore
Share & tools
lore

adrian15

author
#0 lore raw

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

#1 lore raw
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