From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O6fyS-00066D-SM for garchives@archives.gentoo.org; Tue, 27 Apr 2010 08:16:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA38CE0748; Tue, 27 Apr 2010 08:16:41 +0000 (UTC) Received: from mail.oversi.com (oversrv1.oversi.com [209.88.189.2]) by pigeon.gentoo.org (Postfix) with ESMTP id 63970E0748 for ; Tue, 27 Apr 2010 08:16:41 +0000 (UTC) Received: from [10.2.2.28] (unknown [10.2.2.28]) by mail.oversi.com (Postfix) with ESMTPA id 8B72B5D2803 for ; Tue, 27 Apr 2010 11:16:40 +0300 (IDT) Message-ID: <4BD69D68.4060105@oversi.com> Date: Tue, 27 Apr 2010 11:16:40 +0300 From: Amit Dor-Shifer User-Agent: Thunderbird 2.0.0.23 (X11/20090812) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] livecd/empty entries cannot be removed: Device or resource busy Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 40827677-8ad0-44d5-b6cd-5a5edeed50e1 X-Archives-Hash: a05e6468d2fae794177b297ba21061da Hi, After not using catalyst for a while, I attempted to generate a livecd. I've stumbled on an error I haven't seen before: catalyst cannot generate an ISO, because the image.squashfs was too large ("...is larger than 4GiB-1"). I've looked into livecd-stage2 dir, and found usr/portage/distfiles to contain ~5.6 gigs. Catalyst took it from my hosting root file system. I then proceeded to attempt to use "livecd/empty" in stage-2.spec to remove redundant content from the livecd. I took the boilerplate from livecd-stage2_template.spec. I then get this error: !!! catalyst: Error encountered during run of target livecd-stage2 Catalyst aborting.... Traceback (most recent call last): File "/usr/lib64/catalyst/catalyst", line 397, in build_target(addlargs, targetmap) File "/usr/lib64/catalyst/catalyst", line 212, in build_target mytarget.run() File "modules/generic_stage_target.py", line 1301, in run apply(getattr(self,x)) File "modules/generic_stage_target.py", line 1174, in empty shutil.rmtree(myemp) File "/usr/lib64/python2.6/shutil.py", line 216, in rmtree rmtree(fullname, ignore_errors, onerror) File "/usr/lib64/python2.6/shutil.py", line 225, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib64/python2.6/shutil.py", line 223, in rmtree os.rmdir(path) OSError: [Errno 16] Device or resource busy: '/var/tmp/catalyst/tmp/disk_replace/livecd-stage2-amd64-102//usr/portage/distfiles' I got the same error prior to that w/tmp folder, which I've removed from "livecd/empty" on a/m attempt. 1. The fact that I haven't seen this issue before might suggest I'm doing something wrong this time, though can't see what. Pls. advise. Is the list of dirs in the stage2 example valid? how could I resolve the issue and not have the livecd bloated with unnecessary files such as distfiles? 2. The use of livecd/empty tells catalyst to remove dirs from the image. It doesn't actually tell catalyst to ignore them, right? even the fact that catalyst has to remove those dirs means it has to acknowledge those dirs, and spend effort on handling them. Also it prolongs the making of stage2 (e.g. rsyncing to it). Is there a method of totally ignoring files that shouldn't be part of the livecd? thanks, Amit