On Tuesday 18 March 2008 22:37:13 Pavel Roskin wrote: > On Tue, 2008-03-18 at 21:31 +0200, yoram bar haim wrote: > > On Tuesday 18 March 2008 14:02:13 Robert Millan wrote: > > > But it isn't the "grub shell" any > > > > So a real grub-hsell functionality does not exist anymore ? > > It depends on what you mean. > > > I work on grub2 support in the restart menu of kde4 everything (parsing > > grub.cfg and letting the user choose boot option) works except of really > > settings the defualt option for next boot... I can modify grub.cfg but is > > ugly. is there a good way to do this ? > > In my opinion, modifying anything by directly accessing the filesystem > on a running OS is much, much uglier. > > > on leggacy grub it is done simply by running "grub --batch" with pipe and > > writing "savedefault --defualt=n" to the pipe, what can be done in grub2 > > ? > > There is no "savedefault". It hasn't been implemented yet. And if it's > implemented, I would actually prefer that grub-emu is only allowed to do > it by the means of hostfs, not directly.
I respcetfully disagree. I think that if possible, host filesystems should only be accessed as "readonly" by a bootloader. that also saves the efforts of implementing safe writing capabilities to all filesystems that grub can possibly read configuration from. I understand that any alternative (probably exploiting reserved byte at the MBR or bootsector) is durty hack, so if there is an agreed way to implement "savedefault" but no time to do that, I will be happy to help by implementing it in any way that is agreed by the good people here. again, respectfully. -- This message was sent from Debian GNU/Linux lenny/sid _______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
