echo >> ${icfg}
echo "image=/boot/${x}" >> ${icfg}
if [ -e "/boot/${x}.igz" ]
if [ -e $1/boot/${x}.igz ]
then
echo "initrd=/boot/${x}.igz" >> ${icfg}
fi