Problems with bootloader configuration in autoyast SLES10 RC3
I have logged SR#10273247971 for this but I thought I would get peoples thoughts here as well.
Problem is with the <default> global parameter in the <bootloader> section of autoyast.
This works fine:
<bootloader>
I can confirm the same problem with OpenSuSE 10.1
2006/6/28, Matt Gillard
I have logged SR#10273247971 for this but I thought I would get peoples thoughts here as well.
Problem is with the <default> global parameter in the <bootloader> section of autoyast. ie: This also gives the same error for the default tag. It should default to SLES_10 - I should not have to specify it.
<bootloader> <global> <default></default> <gfxmenu></gfxmenu> <prompt>1</prompt> <timeout config:type="integer">5</timeout> </global>
lilo <location>mbr</location> </bootloader> "Value expected for 'default' at or above line 11 in file /etc/lilo.conf."And sure enough in /mnt/etc/lilo.conf at that point of the installation default has no value.
On Wednesday 28 June 2006 17:09, Emils wrote:
I can confirm the same problem with OpenSuSE 10.1
I know. I have reproduced that by myself in the meantime and made a bugreport. Sorry guys, you have to use a chroot-script to workaround that. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de Fax: +49-(0)911-74053-476, Web: http://www.suse.de/~ug
Uwe Gansert wrote
On Wednesday 28 June 2006 17:09, Emils wrote:
I can confirm the same problem with OpenSuSE 10.1
I know. I have reproduced that by myself in the meantime and made a bugreport. Sorry guys, you have to use a chroot-script to workaround that.
I've made the same bugreport for SuSE 10.0RC1 back in september 2005 (Sep 22 on this list). Bugid in bugzilla was 119193, but it was never resolved. Looks like no one really cares about lilo a lot anymore, but everyone is supposed to use grub :-( cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
Uwe Gansert wrote
On Wednesday 28 June 2006 17:09, Emils wrote:
I can confirm the same problem with OpenSuSE 10.1
I know. I have reproduced that by myself in the meantime and made a bugreport. Sorry guys, you have to use a chroot-script to workaround that.
How is that supposed to work? When using a script with chrooted=false, the wrong lilo.conf does not yet exist. But with chrooted=true the script would run after installing lilo, so it won't run at all because the installation stops with the error message about lilo. So unattended install does not work :-( I've set a timeout for error messages, but the error message about lilo has no counter, so it stays forever... Can I do sth. to make the installation go on so that the chroot script after lilo installation is reached automatically? cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
On Tuesday 12 September 2006 10:34, Frank Steiner wrote:
How is that supposed to work? When using a script with chrooted=false, the wrong lilo.conf does not yet exist. But with chrooted=true the script would run after installing lilo, so it won't run at all because the installation stops with the error message about lilo. So unattended install does not work :-(
I don't have the overview of the bug at the moment. Can't you let yast install the default bootloader (no <bootloader> section at all or at least one that does not trigger the popup) and overwrite it in a chroot script?
I've set a timeout for error messages, but the error message about lilo has no counter, so it stays forever...
that's bad -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing ROTERSAND - One Level Down
Ok, two things about this bug:
1) Looks like the whole creation of global parameters is messed up.
I've this part in my profile:
<global config:type="list">
On Tuesday 12 September 2006 11:44, Frank Steiner wrote:
2) I wrote a fix for the missing default label, for BootLILO.ycp, but should work the same way in BootELILO.ycp, because there is the same if clause for autoinst mode. The patch is based on SuSE 10.1 files.
can you attach the patch to https://bugzilla.novell.com/show_bug.cgi?id=119193 please? Plus some words on what it is doing. Thanx. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing Placebo - Bruise Pristine
Uwe Gansert wrote
On Tuesday 12 September 2006 10:34, Frank Steiner wrote:
How is that supposed to work? When using a script with chrooted=false, the wrong lilo.conf does not yet exist. But with chrooted=true the script would run after installing lilo, so it won't run at all because the installation stops with the error message about lilo. So unattended install does not work :-(
I don't have the overview of the bug at the moment. Can't you let yast install the default bootloader (no <bootloader> section at all or at least one that does not trigger the popup) and overwrite it in a chroot script?
I guess I could because I think the problem just pops up if you set any global parameter in the profile. Otherwise, BootLILO.ycp will call "CreateGlobals" and that works fine. Anyway, due to the disk lines I need in lilo.conf for booting from SCSI, I have to run a chroot script anyways. But... this fails :-((( I'm using two chroot scripts: <scripts> <chroot-scripts config:type="list" > <script> <interpreter>shell</interpreter> <location>nfs://141.84.1.3/rpm-export/autoyast/10.1/scripts/prepare_post.script</location> <chrooted config:type="boolean">false</chrooted> </script> <script> <interpreter>shell</interpreter> <location>nfs://141.84.1.3/rpm-export/autoyast/10.1/scripts/wait.script</location> <chrooted config:type="boolean">true</chrooted> </script> </chroot-scripts> </scripts> The first one runs and I see that it is copied to /mnt/var/adm/autoinstall/scripts/ or sth. Then, after installing lilo (now working with the patch), AY tries to copy the second script. y2log says " cp some_nfs_location/wait.scrip /var/adm/autoinstall/scripts/chroot-scripts and then "copy failed, file system is read only" or sth. similar. Actually, there is ineed a mount /dev/loop0 on /mounts/inst-sys type cramfs (ro) and /var/adm/autoinstall is a link to /mounts/inst-sys. Looks like the script is not copied from within the chrooted environment and therefore it fails. So I'm still stuck with that server because I can't insert the disk lines into lilo.conf :-((( cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
On Tuesday 12 September 2006 12:24, Frank Steiner wrote:
Looks like the script is not copied from within the chrooted environment and therefore it fails.
I can reproduce this but only with <location>nfs://... With http for example it's working fine here. Looks like a bug with nfs location used in chrooted=true scripts. I need to take a closer look -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug
Uwe Gansert wrote
On Tuesday 12 September 2006 12:24, Frank Steiner wrote:
Looks like the script is not copied from within the chrooted environment and therefore it fails.
I can reproduce this but only with <location>nfs://... With http for example it's working fine here. Looks like a bug with nfs location used in chrooted=true scripts. I need to take a closer look
Thanks a lot! Looks like I'm always stepping on any kind of unusual situation that produces a bug :'-( We can't use http, but I will try to work around with embedding the script into the profile itself... If you find a fix, let me know (now that I know how to put that stuff into the driverupdate file ;-)) cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
On Tuesday 12 September 2006 13:56, Frank Steiner wrote:
Thanks a lot! Looks like I'm always stepping on any kind of unusual situation that produces a bug :'-(
yes, you are very talented with that. Please do 10.2 tests as soon as possible :)
We can't use http, but I will try to work around with embedding the script into the profile itself...
that should work too.
If you find a fix, let me know (now that I know how to put that stuff into the driverupdate file ;-))
patch attached. You have to recompile: /usr/share/YaST2/modules/AutoInstallRules.ycp /usr/share/YaST2/modules/AutoinstConfig.ycp /usr/share/YaST2/modules/AutoinstScripts.ycp /usr/share/YaST2/modules/ProfileLocation.ycp -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing The Retrosic - Tale of Woe
On Wednesday 13 September 2006 11:21, Uwe Gansert wrote:
patch attached.
forget the patch. It will break other stuff ... *grrr* coffee!!! -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing The Retrosic - Dragonfire
Uwe Gansert wrote
On Tuesday 12 September 2006 13:56, Frank Steiner wrote:
Thanks a lot! Looks like I'm always stepping on any kind of unusual situation that produces a bug :'-(
yes, you are very talented with that. Please do 10.2 tests as soon as possible :)
Sorry, we have now a new policy that we will always use the SuSE versions that has the common code base with SLES. So my next tests will be for SuSE 11.? or whatever is the base for SLES 11 :-)
forget the patch. It will break other stuff ... *grrr* coffee!!!
:-) Don't mind, I embedded the script and it works for now! cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
participants (4)
-
Emils
-
Frank Steiner
-
Matt Gillard
-
Uwe Gansert