Multiboot CMD line
Posted: Thu Jan 10, 2013 5:09 pm
Hey guys,
Any ideas how would be best to reboot a system, and inject a multiboot cmd line argument for GRUB to pass back to the OS after the reboot?
I am trying to implement a 'safe' mode, so when the OS boots, if there is a problem with a driver it will ask GRUB to give it the "safe mode" command line argument on the next boot, and restart the system. Upon rebooting the OS detects the safe mode argument, and doesn't run the device enumeration code.
I believe that multiboot is one-way communication only, so is this even possible? How else could I attain similar? I don't have any file system support yet, so writing a text file, and reading upon boot isn't really an option.
Thanks.
P.S. Do any of you use multiboots cmd line option for anything interesting?
Any ideas how would be best to reboot a system, and inject a multiboot cmd line argument for GRUB to pass back to the OS after the reboot?
I am trying to implement a 'safe' mode, so when the OS boots, if there is a problem with a driver it will ask GRUB to give it the "safe mode" command line argument on the next boot, and restart the system. Upon rebooting the OS detects the safe mode argument, and doesn't run the device enumeration code.
I believe that multiboot is one-way communication only, so is this even possible? How else could I attain similar? I don't have any file system support yet, so writing a text file, and reading upon boot isn't really an option.
Thanks.
P.S. Do any of you use multiboots cmd line option for anything interesting?