Bug 118595

Summary: Autoyast doesn't configure grub password
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Karsten Kuenne <kuenne>
Component: AutoYaSTAssignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ug
Version: RC 1   
Target Milestone: ---   
Hardware: x86   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Karsten Kuenne 2005-09-23 15:58:20 UTC
I have the following lines in my autoyast profile in order to set a grub 
password: 
 
    <bootloader> 
      <activate config:type="boolean">false</activate> 
      <global> 
        <default>Linux</default> 
        <password>--md5 $1$someencryptedmd5string</password> 
        <prompt>1</prompt> 
        <timeout config:type="integer">8</timeout> 
      </global> 
... 
 
This is according to the XML syntax autoyast generates if I let it generate a 
reference profile, which seems to be different from 9.3.. But autoyast doesn't 
put the password into the menu.lst file. Following are some lines from the 
y2log in the hope they are useful: 
 
... 
2005-09-21 20:58:11 <1> linux(3146) [YCP] bootloader/routines/misc.ycp:1306 
Available swap partitions: $["/dev/sda7":1612154880] 
2005-09-21 20:58:11 <2> linux(3146) [YCP] bootloader/routines/misc.ycp:1379 
Incorrect translation Failsafe -> 
2005-09-21 20:58:11 <1> linux(3146) [YCP] 
bootloader/routines/autoinstall.ycp:208 SLES9 format detected: false 
2005-09-21 20:58:11 <3> linux(3146) [Interpreter] 
bootloader/routines/autoinstall.ycp:243 Can't convert value 
'[$["default":"Linux"], $["password":"--md5 $1$someencryptedmd5string"], 
$["prompt":"1"], $["timeout":"8"]]' to type 'map' 
2005-09-21 20:58:11 <3> linux(3146) [Interpreter] 
bootloader/routines/autoinstall.ycp:243 Argument (/* any -> map 
*/exp["specific", "global"]:$[]) to haskey(...) is nil 
2005-09-21 20:58:11 <3> linux(3146) [Interpreter] 
bootloader/routines/autoinstall.ycp:243 if condition is nil. 
... 
 
I also tried to use the following old XML syntax from 9.3 but that messed up 
the menu.lst file even more, but in a different way: 
 
    <bootloader> 
      <activate config:type="boolean">false</activate> 
      <global config:type="list"> 
        <global_entry> 
          <key>color</key> 
          <value>white/blue black/light-gray</value> 
        </global_entry> 
        <global_entry> 
          <key>default</key> 
          <value config:type="integer">0</value> 
        </global_entry> 
        <global_entry> 
          <key>timeout</key> 
          <value config:type="integer">8</value> 
        </global_entry> 
        <global_entry> 
          <key>gfxmenu</key> 
          <value>(hd0,0)/message</value> 
        </global_entry> 
        <global_entry> 
          <key>password</key> 
          <value>--md5 $1$someencryptedmd5string</value> 
        </global_entry> 
      </global> 
... 
 
 
What's the correct way to specify a grub password in 10.0?
Comment 1 Uwe Gansert 2005-09-26 07:52:11 UTC
Jiri, can you please take a look?

Comment 2 Jiri Srain 2005-09-29 12:18:39 UTC
There is no way to specify the boot loader password in 10.0 at all. I will add 
it for 10.1. 
Comment 3 Jiri Srain 2005-09-29 12:37:44 UTC
Sorry, ignore last comment, it was void. It should be supported. 
Comment 4 Jiri Srain 2005-09-29 15:01:30 UTC
Fixed in SVN for 10.1. 
 
As the affected code is run from the installation CD (which is unchangeable), 
I cannot fix it for 10.0. 
Comment 5 Karsten Kuenne 2005-09-29 17:32:00 UTC
But can we get a patch for 10.0 as well or do we have to wait for 10.1? We do 
almost all of our installations via the network and not from CD so the 
unchangeable CD is not an issue for us. We copy the CD/DVD content to our 
server and replace the broken rpm's.