From Fedora Project Wiki

(render the <pre> tag correctly)
(remove stage#1)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=
|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 or stage#1 environment.
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 {{filename|initrd.img}}.
|actions=
|actions=
# Prepare a valid kickstart file. For help creating a kickstart file, examine the file {{filename|/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]].
# Prepare a valid kickstart file. For help creating a kickstart file, examine the file {{filename|/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 {{filename|images/pxeboot/initrd.img}}.
# Download the installer initial ramdisk.  The ramdisk is typically called {{filename|images/pxeboot/initrd.img}}
# Place the kickstart file into the root directory of the installer initial ramdisk using the {{command|pax}} command.  For example,  
# Place the kickstart file into the root directory of the installer initial ramdisk using the {{command|pax}} command.  For example,  
## Untar the ramdisk: <pre>zcat initrd.img > initrd.cpio</pre>
## Untar the ramdisk: <pre>zcat initrd.img > initrd.cpio</pre>

Revision as of 09:50, 3 June 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

  1. 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
  2. Download the installer initial ramdisk. The ramdisk is typically called images/pxeboot/initrd.img
  3. Place the kickstart file into the root directory of the installer initial ramdisk using the pax command. For example,
    1. Untar the ramdisk:
      zcat initrd.img > initrd.cpio
    2. Add the kickstart file:
      pax -w -a -f initrd.cpio ks.cfg
    3. Compress the image:
      gzip -c initrd.cpio > initrd.img
  4. Boot into the installer using any available means
  5. 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

  1. Confirm the ks.cfg is included in the initial ramdisk.
  2. zcat initrd.img | pax | grep ks.cfg
     ks.cfg 
  3. The ks.cfg is successfully obtained from the specified location
  4. The install should proceed in accordance with the directives in the ks.cfg file