Hi John,
> Perhaps I am calling the OEM (ISO/USB) boot/install image option by
> the wrong thing here. I thought it was the recovery showing up again,
> but it seems that I misread the actual title of the option.
>
> When we are booting our current oem type ISO images, we get the
> following options:
> Boot From Hard Disk
> Install/Restore <ImageName>
> Failsafe -- Install/Restore <ImageName>
>
> First, is there any way to remove the "Restore" from the Install
> option? I don't think that the install from an OEM type ISO has any
> way to perform a restore.
Ok now I understand. I think we labeled this Install/Restore because
if you have already installed this image for the first time you can
restore the same thing back to the factory state by just repeating
the install process. So I think this is kind of a restore then
but I'm open for any better wording to express that
> So I'm not sure how this wording makes
> sense here. It has been causing a small bit of confusion for our QA
> and testing teams. (Which is why I asked the initial question :-)
yes we use the word Restore in the oem recovery system as well.
The menu entry 'Restore Factory System' does basically the same
as if you select 'Install/Restore' from the install iso.
> Second what is the Failsafe option? I don't see it documented in the
> pdf, or online.
Failsafe just runs the kernel with 'failsafe' options:
switch of the framebuffer, switch of the object resume feature,
switch off acpi and apm and set ide to not use DMA
> Looking at the code, and the boot menus, it looks like that just adds
> some more kernel command line options. We don't need this, and it
> could cause trouble in our install/boot scenarios.
> Is there a way we can turn this option off?
I'm pretty sure the failsafe mode will not cause trouble in your
testing. failsafe just decreases the kernel performance and _can_
help in very rare cases to overcome hardware problems
But I think you want control over the menu items here. So the
customer is the king and there is a way how you can influence
the contents of any boot menu created by kiwi :-)
*** The following applies to v5.03.x which is not yet released ***
1) specify an editbootconfig script name in your config.xml
<type ... editbootconfig="/absolute/path/to/a/script"/>
It's not required that you use a script, you also can write a C
program and let kiwi call this one. But what is required is the
absolute path. So far kiwi does not search for the program.
If this feature will become popular which I don't hope I will
make it more user friendly ;)
2) the specified script is called prior to _ANY_ bootloader setup
This is important to understand because when you build an install ISO
kiwi also builds the image which the install ISO should install.
That image also has a bootloader on board. Thus there are two
bootloader configurations involved in the process and your
bootconfig script is called twice.
3) The script is called as follows:
system ("cd $tmpdir && bash --norc -c $editBoot");
So you are not in a chroot and you are root. Be careful what you do
in your script and I also strongly recommend to use relative paths
only and pushd/popd to change directories or even better avoid
changing directories at all. kiwi creates the bootloader relevant
files and directories in a tmpdir and copies them at the right
time. editbootconfig allows to interrupt at that point and gives
you the oppurtunity to change everything
4) In order to change the boot menu for an install iso the file
you need to adapt is:
boot/grub/menu.lst
==> relatively to the system call !
The install iso calls isolinux in a way which embeds grub
If you have that in mind you can setup your own bootloader setup
and more... but you also can destroy everything :) That's the reason
why I also did not document it so far
I also know that most of the security people will hit me for
writing such a code but sometimes I think functionality goes before
security and with kiwi you also have to be root prior to any other
task. So one is already in the situation to do everything one wants
Hope that helps