On Tuesday 01 October 2013 16:02:06 Gene Czarcinski wrote:
> I am not sure where to ask this question. If it is not this list,
> please point me to the correct one.
>
> I decided that I wanted to get ahead of things and be able to boot a
> version which was not currently available as an iso image. After some
> googling, I found this:
>
>
https://fedoraproject.org/wiki/How_to_create_a_Fedora_install_ISO_for_testin
> g
>
> A few years ago I had manually recreated iso images but this looked to
> be lots simpler. I have used mock to build rpms but I have not
> previously used pungi. Anyway, I plunged in but with NO success. I
> thried hostin on both F19 and F18. I tried building on both F19 and F18
> (my intent was to do this on F20 & rawhide but first get it working on a
> good system). Besides my "netinst.ks" file. I tried the
> fedora-install-fedora.ks file and the fedora-livecd-desktop.ks file.
> All had the same error which I show below. Since iso images are being
> produced, it must be something i am or am not doing ... in other words:
> pilot error.
>
> --------------fedora-netinst.ks---------------
> # A simple kickstart file for creating a netinstall iso
> # Tue 01 Oct 2013 11:50:43 AM EDT
>
> lang en_US.UTF-8
> keyboard us
> timezone US/Eastern
> auth --enableshadow --passalgo=sha512
> selinux --disabled
> firewall --disabled
> xconfig --startxonboot
>
> ################### repo config ############################
> #repo --name=rawhide
>
--mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$
> basearch repo --name=fedora
>
--mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releas
> ever&arch=$basearch repo --name=updates
>
--mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-releas
> ed-f$releasever&arch=$basearch #repo --name=updates-testing
>
--mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testin
> g-f$releasever&arch=$basearch
>
---------------------------------------------------------------------------
> ------------------------------------------------------------
> <mock-chroot>[root@falcon /]# pungi --nosource --nodebuginfo --flavor
> Fedora \
> --name Fedora --ver 18 \
> -c /usr/share/spin-kickstarts/fedora-netinst.ks \
> -G -C --force
>
> <mock-chroot>[root@falcon /]# pungi --nosource --nodebuginfo --flavor
> Fedora \
> --name Fedora --ver 18 \
> -c /usr/share/spin-kickstarts/fedora-netinst.ks \
> -B --force
>
>
----------------------------------------------------------------------------
> ---------- running runtime-cleanup.tmpl
> creating the runtime image
> losetup:
>
/work/Fedora/x86_64/installroot/images/runtime-workdir/LiveOS/rootfs.img:
> failed to setup loop device: No such file or directory
> Traceback (most recent call last):
> File "/usr/bin/pungi", line 256, in <module>
> main()
> File "/usr/bin/pungi", line 146, in main
> mypungi.doBuildinstall()
> File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line
> 937, in doBuildinstall
> workdir=workdir, outputdir=outputdir)
> File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line
> 272, in run
> compression=compression, compressargs=compressargs)
> File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line
> 158, in create_runtime
> label="Anaconda", size=fssize)
> File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line
> 328, in mkext4img
> mkfsargs=["-L", label, "-b", "1024", "-m", "0"], graft=graft)
> File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line
> 308, in mkfsimage
> with LoopDev(outfile, size) as loopdev:
> File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line
> 213, in __enter__
> self.loopdev = loop_attach(self.filename)
> File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line 73,
> in loop_attach
> dev = runcmd_output(["losetup", "--find", "--show", outfile])
> File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line
> 420, in runcmd_output
> return execWithCapture(cmd[0], cmd[1:], **kwargs)
> File "/usr/lib/python2.7/site-packages/pylorax/executils.py", line
> 263, in execWithCapture
> raise subprocess.CalledProcessError(proc.returncode, [command]+argv)
> subprocess.CalledProcessError: Command '['losetup', '--find', '--show',
>
'/work/Fedora/x86_64/installroot/images/runtime-workdir/LiveOS/rootfs.img']'
> returned non-zero exit status 1
> <mock-chroot>[root@falcon /]# ls
> 18 builddir fedora lib64 mnt proc sbin tmp var
> bin dev home logs opt root srv updates work
> boot etc lib media ourtree run sys usr
> <mock-chroot>[root@falcon /]# ls 18/
> Fedora
> <mock-chroot>[root@falcon /]# ls 18/Fedora/
> x86_64
> <mock-chroot>[root@falcon /]# ls 18/Fedora/x86_64/
> os
> <mock-chroot>[root@falcon /]# ls 18/Fedora/x86_64/os/
> Packages repodata repoview
> <mock-chroot>[root@falcon /]# ls work/
> Fedora
> <mock-chroot>[root@falcon /]# ls work/Fedora/
> x86_64
> <mock-chroot>[root@falcon /]# ls work/Fedora/x86_64/
> docs Fedora--name-18-comps.xml installroot yumroot
> <mock-chroot>[root@falcon /]# ls work/Fedora/x86_64/docs/
> <mock-chroot>[root@falcon /]# ls work/Fedora/x86_64/installroot/
> bin etc home lib64 modules root srv usr
> boot firmware images media opt run sys var
> dev fonts.scale lib mnt proc sbin tmp
> <mock-chroot>[root@falcon /]# ls work/Fedora/x86_64/yumroot/
> bin etc fonts.scale lib64 modules root sbin tmp var
> dev firmware lib mnt proc run sys usr
>
----------------------------------------------------------------------------
> -----------------
>
> Gene
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
Please try the following command before running pungi:
<mock-chroot>[root@falcon /]# for var in `seq 0 8`; do mknod
/dev/loop$var b 7 $var; done