Re: running scripts before x-server starts



On Monday 30 July 2007 21:12, Lev Lafayette wrote:
The orginal poster wants to do stuff in those scripts depending on
what GRUB options were selected.

Finding the right script to do it in is only half the solution: How
is information passed out of GRUB about what options were selected?

Hmmm... Normally that isn't possible, because GRUB merely determines
what image to boot and the rc's are independent of that.

Sure it is, SUSE does it in their profile switcher. Their GRUB screen
has function-key options to chose one of the profiles you have set up
with SCPM; it puts PROFILE=profilename on the kernel command line and
it's read in a boot script (/etc/init.d/boot.scpm).

http://www.novell.com/documentation/opensuse102/index.html?page=/documentation/opensuse102/opensuse102_reference/data/cha_scpm.html

And yes, it can be used to select X configurations at boot time. I'm
sure something like it could be hacked up for Ubuntu as well...

--
"Mozilla, unlike emacs, is not an operating system."
Glenn Holmer (Q-Link: ShadowM) http://www.lyonlabs.org

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Ultimate Fedora partition scheme ?
    ... Grub was installed for this one in the ... and this is the normal default boot system. ... title Boot other linux ... Here's the save-boot script that saves the ...
    (Fedora)
  • Re: dual OS boot selection
    ... default grub choice for *the next reboot only*. ... will tell grub to boot Windows for the ... [There's a script I wrote, and another poster refers to an earlier ... command-line only script. ...
    (Fedora)
  • Re: grub/lilo - Re: Whats with this new Debian installer?
    ... >>the next boot and then revert to the usual default. ... both grub and lilo ... >>There's a nice little script to do that too. ... If you can "apt-get install grub" it's there for you. ...
    (Debian-User)
  • Re: (no subject) [er...how to get rid of hibernate hooks in grub on F7]
    ... mentioned that the script I'm looking for is now located in ... see the grub screen so that I might select the windows OS instead? ... would just be handy in case I get a kernel update, but hibernate before ... I'm wondering how I can unhook the hibenate process in Fedora 7 from the ...
    (Fedora)
  • Re: How to dual boot Suse and Slackware.
    ... to never modify a script that may be overwritten by an update. ... have a patched version of grub, ... http://gag.sourceforge.net/ and install each distributions boot loader ... or changes with one distro do not effect any other distro. ...
    (comp.os.linux.misc)