Skip to contentSkip to conversation

Command line options to elilo from bootmanager

Linux-ia64 Michael Madore 2 participants 3 messages Apr 17, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

Is it possible to pass command line options to elilo from the boot manager menu? For example, I would like to invoke elilo from the boot manager with an alternate configuration file. I tried using efibootmgr like so:

efibootmgr -L linux-ram -l "elilo.efi -C elilo-ram.conf" -c -d /dev/sda -p 2"

but apparently, EFI treats the "-C elilo-ram.conf" as part of the bootloader command.

Mike

#1 lore raw
Quoted 7 lines · Michael Madore

Hi,

Is it possible to pass command line options to elilo from the boot manager menu? For example, I would like to invoke elilo from the boot manager with an alternate configuration file. I tried using efibootmgr like so:

Quoted 5 lines

efibootmgr -L linux-ram -l "elilo.efi -C elilo-ram.conf" -c -d /dev/sda -p 2"

but apparently, EFI treats the "-C elilo-ram.conf" as part of the bootloader command.

efibootmgr -c -d $BOOTDISK -p $BOOTPART -w -L "Debian GNU/Linux" \
	-l \\EFI\\debian\\elilo.efi -u -- elilo -C \\EFI\\debian\\elilo.conf

is what I use. The trick is to supply a dummy 'elilo' for argv[0], and all args after '--' are passed as arguments to elilo.efi

Richard

#2 lore raw
In reply to Michael Madore
Quoted 15 lines · Richard Hirst
Quoted 7 lines · Michael Madore

Hi,

Is it possible to pass command line options to elilo from the boot manager menu? For example, I would like to invoke elilo from the boot manager with an alternate configuration file. I tried using efibootmgr like so:

Quoted 5 lines

efibootmgr -L linux-ram -l "elilo.efi -C elilo-ram.conf" -c -d /dev/sda -p 2"

but apparently, EFI treats the "-C elilo-ram.conf" as part of the bootloader command.

Quoted 7 lines
efibootmgr -c -d $BOOTDISK -p $BOOTPART -w -L "Debian GNU/Linux" \
        -l \\EFI\\debian\\elilo.efi -u -- elilo -C \\EFI\\debian\\elilo.conf

is what I use. The trick is to supply a dummy 'elilo' for argv[0], and all args after '--' are passed as arguments to elilo.efi

Richard

Thanks Richard, that works for me.

Mike