[Fedora-livecd-list] error during liveDVD build

James Heather j.heather at surrey.ac.uk
Tue Mar 1 14:30:11 UTC 2011


I had some issues of this sort a while back, when including akmods (from
rpmfusion) in a kickstart file. It builds kernel modules on the fly, but
it needs the rpm lock, which it can't get until everything's finished
installing. So it starts after the installation part has finished, but
that causes the umount to fail.

The best solution I found is to put this at the bottom of your kickstart
(I save it as 'sleepy-hack.ks' and include it where necessary). It
checks whether anything still has the installation image open, and
blocks if so.

James


%post --nochroot
#hack to try to stop umount probs
while (/usr/sbin/lsof /dev/loop* 2>/dev/null | grep -v "$0" 2>/dev/null | grep -q "$INSTALL_ROOT")
do
	sleep 5s
done
%end



On Tue, 2011-03-01 at 14:14 +0000, Danishka Navin wrote:

> Hi Alan,
> 
> 
> On Tue, Mar 1, 2011 at 2:33 PM, Alan Pevec <apevec at gmail.com> wrote:
> 
>         On Tue, Mar 1, 2011 at 9:40 AM, Danishka Navin
>         <danishka at gmail.com> wrote:
>         
>                 Could not build the LiveDVD based on Fedora 14 (both
>                 i386 and x86_64)
>         
>         This is probably more question for the spins list, but which
>         kickstart file did you  use?
>         
>         
>         My guess would be that one of the packages you include starts
>         something in its %post which keeps rootfs busy.
>         
>         
> 
> fixed it. you were right! :)
> 
> thanks 
> 
> 
> 
> 
> -- 
> Danishka Navin
> http://danishkanavin.blogspot.com
> http://twitter.com/danishkanavin
> http://identi.ca/danishka


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/livecd/attachments/20110301/543a86ab/attachment.html 


More information about the livecd mailing list