Ask Your Question

Create custom livecd fedora 26 problem.

asked 2017-07-24 04:57:48 -0500


I'm trying to create a livecd method, described in the article.

The command to create the image fails with an error, because mock can not create and use /dev/loop

<mock-chroot> sh-4.3# livemedia-creator --ks flat-fedora-live-soas.ks --no-virt --resultdir /var/lmc --project Fedora-soas-Live --make-iso --volid Fedora-SoaS-26 --iso-only --iso-name Fedora-SoaS-26-x86_64.iso --releasever 26 --title Fedora-SoaS-live --macboot

How to solve this problem? Thank you.

2017-07-24 12:52:26,042: diskimg = /var/lmc/lmc-disk-3nj3vw5b.img 2017-07-24 12:52:26,044: Using disk size of 5122MiB Traceback (most recent call last): File "/usr/sbin/livemedia-creator", line 1476, in <module> main() File "/usr/sbin/livemedia-creator", line 1393, in main diskimg = makeimage(opts, ks) File "/usr/sbin/livemedia-creator", line 1080, in makeimage novirtinstall(opts, diskimg, disksize) File "/usr/sbin/livemedia-creator", line 747, in novirtinstall mkext4img(None, diskimg, label=opts.fslabel, size=disksize * 1024**2) File "/usr/lib/python3.6/site-packages/pylorax/", line 442, in mkext4img mkfsargs=["-L", label, "-b", "4096", "-m", "0"], graft=graft) File "/usr/lib/python3.6/site-packages/pylorax/", line 417, in mkfsimage with LoopDev(outfile, size) as loopdev: File "/usr/lib/python3.6/site-packages/pylorax/", line 297, in enter self.loopdev = loopattach(self.filename) File "/usr/lib/python3.6/site-packages/pylorax/", line 154, in loopattach dev = runcmdoutput(["losetup", "--find", "--show", outfile]) File "/usr/lib/python3.6/site-packages/pylorax/", line 347, in runcmdoutput return execWithCapture(cmd[0], cmd[1:], **kwargs) File "/usr/lib/python3.6/site-packages/pylorax/", line 249, in execWithCapture resethandlers=resethandlers, resetlang=resetlang)[1] File "/usr/lib/python3.6/site-packages/pylorax/", line 201, in _runprogram raise subprocess.CalledProcessError(proc.returncode, argv, output) subprocess.CalledProcessError: Command '['losetup', '--find', '--show', '/var/lmc/lmc-disk-3nj3vw5b.img']' returned non-zero exit status 1.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-24 11:50:15 -0500

You might want to try

mock [...] --old-chroot
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-07-24 04:57:48 -0500

Seen: 118 times

Last updated: Jul 24 '17