I am trying to create a disk image with a customized version of Cento6 installation on my Centos6 machine. I am planning to dump this image to a disk of an embedded device. I thought I could use a loopback device as the installation destination instead of  a real disk but when I put "loop0" in kickstart file I am getting the following error:<div>
<br></div><div><div>The following error was found while parsing the kickstart configuration file:</div><div><br></div><div>The following problem occurred on line 36 of the kickstart file:</div><div><br></div><div>Specified nonexistent disk loop0 in partition command</div>
<div><br></div><div>Here is my kickstart file:</div><div><br></div><div><div>#platform=x86, AMD64, or Intel EM64T</div><div>#version=DEVEL</div><div># Firewall configuration</div><div>firewall --disabled</div><div># Install OS instead of upgrade</div>
<div>install</div><div># Use hard drive installation media</div><div>repo --name=centos6 --baseurl=file://my/repo/path/centos6_repo/os/x86_64</div><div># Root password</div><div>rootpw --iscrypted $1$2ThvVzg7$PCHK8TnCECOjzbRV4VPzo1</div>
<div># Network information</div><div>#network --onboot yes --device eth1 --bootproto dhcp --noipv6</div><div>#network  --bootproto=dhcp --device=eth1 --onboot=on</div><div># System authorization information</div><div>auth --useshadow --passalgo=sha512</div>
<div># Use graphical install</div><div>#graphical</div><div># System keyboard</div><div>keyboard us</div><div># System language</div><div>lang en_US</div><div># SELinux configuration</div><div>selinux --disabled</div><div>
# Do not configure the X Window System</div><div>skipx</div><div># Installation logging level</div><div>logging --level=debug</div><div># System timezone</div><div>timezone  America/New_York</div><div># System bootloader configuration</div>
<div>bootloader --location=mbr --driveorder=loop0</div><div># Partition clearing information</div><div>#clearpart --all --drives=loop0 --initlabel</div><div># Disk partitioning information</div><div>part / --fstype="ext4" --grow --ondisk=loop0 --size=1</div>
<div><br></div><div>%packages --excludedocs --nobase</div><div>@core --nodefaults</div><div>#anaconda</div><div><br></div><div>-ipw2100-firmware</div><div>-ipw2200-firmware</div><div>-ivtv-firmware</div><div>-iwl100-firmware</div>
<div>-iwl1000-firmware</div><div>-iwl3945-firmware</div><div>-iwl4965-firmware</div><div>-iwl5000-firmware</div><div>-iwl5150-firmware</div><div>-iwl6000-firmware</div><div>-iwl6000g2a-firmware</div><div>-iwl6000g2b-firmware</div>
<div>-iwl6050-firmware</div><div>#-kernel-firmware</div><div>-libertas-usb8388-firmware</div><div>-ql2100-firmware</div><div>-ql2200-firmware</div><div>-ql23xx-firmware</div><div>-ql2400-firmware</div><div>-ql2500-firmware</div>
<div>-rt61pci-firmware</div><div>-rt73usb-firmware</div><div>-xorg-x11-drv-ati-firmware</div><div>-zd1211-firmware</div><div><br></div><div>%end</div><div><br></div><div>%post --erroronfail</div><div>#!/bin/bash</div><div>
umount /proc/bus/usb</div><div>umount /proc</div><div>umount /sys</div><div>umount /selinux</div><div>umount /dev/pts</div><div>umount /dev/shm</div><div>umount /dev</div><div>%end</div><div><br></div><div>reboot</div></div>
<div><br></div><div><br></div><div><br></div><div>The empty image fle was created in the following way:</div><div><br></div><div># qemu-img create -f raw /my/path/cie.img 1G</div><div><br></div>and then attached to /dev/loop0 (before running anaconda):</div>
<div><div># losetup -v -f /my/path/cie.img </div><div>Loop device is /dev/loop0</div><div><br></div></div><div>Any help greatly appreciated, </div><div><br></div><div><br>Piotr<br><br>
</div>