clebergnu/autotest — comment on commit cd0c29036fec16978193ed4e9be43be784ae8a45
File: client/tools/boottool.py line 881
By clebergnu:

So, I hacked `eliloalt` to make it work (setting and removing the EFI vars) on 2.6 kernels (using `/sys/firmware/efi/vars`).

Besides setting the variable it's necessary to either run `elilo.efi` with the `-a` argument, or set `checkalt` in the `elilo.conf` file. It's also necessary to remove the `prompt` directive from the config file, because that means "force interactive (and select first by default) mode".

The `elilo.efi` boot recognizes that the variable is set:

```
Loading: Red Hat Enterprise Linux AS
Starting: Red Hat Enterprise Linux AS
found alternate default choice : vmlinuz-2.6.9-100.EL root=/dev/VolGroup00/LogVol00 console=ttySG0
```

Still, there's one missing piece to the puzzle: loading the initrd. It should be possible to do it in one of two ways:

* Passing the '-i argument' to `elilo` via `efibootmgr`
* Setting `initrd=` as a top-level (global) line in `elilo.conf`

I'll check how both options work out.

So, I'll give this another short try, and if we fail, I guess we can postpone this feature to a later boottool version.

PS: I somehow mistakenly assumed that an implementation for RHEL 4 would be based on `/proc/efi/vars`, but it also runs a 2.6 kernel.