From Fedora Project Wiki
m (moved QA:Testcase Kickstart FilePath KsCfg to QA:Testcase Kickstart File Path Ks Cfg: divide words by _) |
(add a expected result to check install process runs unattended(ticket#217)) |
||
Line 40: | Line 40: | ||
</pre> | </pre> | ||
<li> The install should proceed in accordance with the directives in the {{filename|ks.cfg}} file</li> | <li> The install should proceed in accordance with the directives in the {{filename|ks.cfg}} file</li> | ||
<li> Anaconda should not prompt for user interaction if {{filename|ks.cfg}} is not specified</li> | |||
</ol> | </ol> | ||
}} | }} | ||
[[Category:Kickstart Delivery]] | [[Category:Kickstart Delivery]] |
Revision as of 10:11, 11 July 2011
Description
This test will verify that anaconda can load a kickstart file from a file://
path. This is a typical case for when the kickstart file is located in the initrd.img
.
How to test
- Prepare a valid kickstart file. For help creating a kickstart file, examine the file
/root/anaconda-ks.cfg
on a previously installed system. This file contains the kickstart instructions used to install that system. For additional guidance on kickstart syntax, see Anaconda/Kickstart - Download the installer initial ramdisk. The ramdisk is typically called
images/pxeboot/initrd.img
- Place the kickstart file into the root directory of the installer initial ramdisk using the
pax
command. For example,- Decompress the ramdisk:
xz -c -d initrd.img > initrd.cpio
- Add the kickstart file:
pax -w -a -f initrd.cpio ks.cfg
- Re-compress the image:
xz --check=crc32 -9 -c initrd.cpio > initrd.img
- Boot into the installer using any available means
- At the bootloader prompt, provide a location for the kickstart file at the boot prompt. Using the example above:
linux ks=file:///ks.cfg
Expected Results
- Confirm the ks.cfg is included in the initial ramdisk.
xz -c -d initrd.img | cpio -it | grep ks.cfg ks.cfg
- The installer successfully initiates a kickstart install in accordance with the instructions supplied by the
ks.cfg
file included in the initial ramdisk. To ensure the kickstart file is properly loaded, inspect theanaconda.log
for a lines similar to the following:15:44:56,189 INFO loader: kernel command line: 15:44:56,189 INFO loader: ks=file:///ks.cfg ... 15:44:59,274 INFO loader: getting kickstart file 15:44:59,274 INFO loader: setting up kickstart ... 15:44:59,906 INFO loader: doing kickstart... setting it up
- The install should proceed in accordance with the directives in the
ks.cfg
file - Anaconda should not prompt for user interaction if
ks.cfg
is not specified
- Decompress the ramdisk: