Command line options to elilo from bootmanager
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
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
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.confis 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