1 |
Hi, |
2 |
|
3 |
After not using catalyst for a while, I attempted to generate a livecd. |
4 |
I've stumbled on an error I haven't seen before: catalyst cannot |
5 |
generate an ISO, because the image.squashfs was too large ("...is larger |
6 |
than 4GiB-1"). |
7 |
|
8 |
I've looked into livecd-stage2 dir, and found usr/portage/distfiles to |
9 |
contain ~5.6 gigs. Catalyst took it from my hosting root file system. |
10 |
|
11 |
|
12 |
I then proceeded to attempt to use "livecd/empty" in stage-2.spec to |
13 |
remove redundant content from the livecd. I took the boilerplate from |
14 |
livecd-stage2_template.spec. I then get this error: |
15 |
|
16 |
<shell> |
17 |
!!! catalyst: Error encountered during run of target livecd-stage2 |
18 |
Catalyst aborting.... |
19 |
Traceback (most recent call last): |
20 |
File "/usr/lib64/catalyst/catalyst", line 397, in <module> |
21 |
build_target(addlargs, targetmap) |
22 |
File "/usr/lib64/catalyst/catalyst", line 212, in build_target |
23 |
mytarget.run() |
24 |
File "modules/generic_stage_target.py", line 1301, in run |
25 |
apply(getattr(self,x)) |
26 |
File "modules/generic_stage_target.py", line 1174, in empty |
27 |
shutil.rmtree(myemp) |
28 |
File "/usr/lib64/python2.6/shutil.py", line 216, in rmtree |
29 |
rmtree(fullname, ignore_errors, onerror) |
30 |
File "/usr/lib64/python2.6/shutil.py", line 225, in rmtree |
31 |
onerror(os.rmdir, path, sys.exc_info()) |
32 |
File "/usr/lib64/python2.6/shutil.py", line 223, in rmtree |
33 |
os.rmdir(path) |
34 |
OSError: [Errno 16] Device or resource busy: |
35 |
'/var/tmp/catalyst/tmp/disk_replace/livecd-stage2-amd64-102//usr/portage/distfiles' |
36 |
</shell> |
37 |
|
38 |
I got the same error prior to that w/tmp folder, which I've removed from |
39 |
"livecd/empty" on a/m attempt. |
40 |
|
41 |
1. The fact that I haven't seen this issue before might suggest I'm |
42 |
doing something wrong this time, though can't see what. Pls. |
43 |
advise. Is the list of dirs in the stage2 example valid? how could |
44 |
I resolve the issue and not have the livecd bloated with |
45 |
unnecessary files such as distfiles? |
46 |
2. The use of livecd/empty tells catalyst to remove dirs from the |
47 |
image. It doesn't actually tell catalyst to ignore them, right? |
48 |
even the fact that catalyst has to remove those dirs means it has |
49 |
to acknowledge those dirs, and spend effort on handling them. Also |
50 |
it prolongs the making of stage2 (e.g. rsyncing to it). Is there a |
51 |
method of totally ignoring files that shouldn't be part of the livecd? |
52 |
|
53 |
thanks, |
54 |
Amit |