Bugzilla – Bug 118595
Autoyast doesn't configure grub password
Last modified: 2005-09-29 17:32:00 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?
Jiri, can you please take a look?
There is no way to specify the boot loader password in 10.0 at all. I will add it for 10.1.
Sorry, ignore last comment, it was void. It should be supported.
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.
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.