Catalyst2 tries to cleanup chrooted /tmp/*, and doesn't umount /tmp/kerncache, /usr/portage/packages and /usr/portage. I don't know anything about python programming, but I'm sure this is whare the error is (I see that those dirs are mounted after catalyst2 stops, and trying to do rm -R <path_to_catalyst_stage>/tmp, says the same "Device or resource busy". Btw, after sucessuful build of stage1, stage2 stops with this error.
Can you please post the actual output?
Created attachment 79232 [details]
Output of catalyst2 + some commands
Try clearing your autoresume points...
Only thing that happend is that whole process was started again. As my /tmp and /var/tmp in chroot are clean, I suppose that cleaning is not putting .autoresume-<whatever-stage>/clean file. This is just my wild guess, as a person without any knowledge about python.
I'm going to assume that this wasn't magically fixed by a newer catalyst release, right?
Any chance you can use something like lsof to find out exactly why the device is busy?
It's not busy when catalyst finish his work. I can simply umount those mount mounts (tmp/kerncache, usr/portage, usr/portage/packages, all in /var/tmp/catalyst2/tmp/default/stageN). While catalyst is working, it is logical that those mount points are busy. So, I lsof can't give us any hint here.
OK. Perhaps you missed my meaning. You need to add an lsof call to catalyst, so you can see what is blocking, not after it has completed.
Please reopen after performing the requested actions. I cannot duplicate this, so without more information, there isn't anything that I can do.
I get the same problem.
The only thing in the chrooted /tmp is /tmp/kerncache, which has /var/tmp/catalyst/kerncache/default/livecd-stage2-x86-1 mounted on it.
It's trying to delete everything in /tmp without unmounting kerncache first.
If you take /tmp out of livecd/empty then it blocks on the chrooted /usr/portage the same way since /usr/portage/distfiles is mounted on there.
It also clears out all your distfiles (from the hosts /usr/portage/distfiles) before being unable to delete the folder in the chroot /usr/portage/distfiles where its mounted.
Ok, so I had /var/tmp/catalyst as a symlink to /root/catalyst which seemed to be causing some of my problems. So I got rid of the symlink and moved it back to /var/tmp/catalyst but I keep getting the same error.
To make things weirder, now I can't delete the folders after it's finished running.
Cleaning chroot: /usr/portage...
rm: cannot remove directory `/var/tmp/catalyst/tmp/default/livecd-stage1-x86-1//usr/portage/distfiles': Device or resource busy
rm: cannot remove directory `/var/tmp/catalyst/tmp/default/livecd-stage1-x86-1//usr/portage/packages': Device or resource busy
!!! catalyst: Couldn't clean /usr/portage
!!! catalyst: Error encountered during run of target livecd-stage1
And then afterwards I try to manually delete the folders and get the same error.
But what's really weird, is that they don't show up on mount.
/dev/hda3 on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,gid=5,mode=620)
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
nfsd on /proc/fs/nfs type nfsd (rw,noexec,nosuid,nodev)
But if I cat /proc/mounts I get:
Serenity:~# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw,noatime 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
/dev/hdb3 /home/bob5972 reiserfs rw,noatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec,devgid=85,devmode=664 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
nfsd /proc/fs/nfs nfsd rw,nosuid,nodev,noexec 0 0
/dev/root /var/tmp/catalyst/tmp/default/livecd-stage1-x86-1/usr/portage reiserfs rw,noatime 0 0
/dev/root /var/tmp/catalyst/tmp/default/livecd-stage1-x86-1/usr/portage/distfiles reiserfs rw,noatime 0 0
/dev/root /var/tmp/catalyst/tmp/default/livecd-stage1-x86-1/usr/portage/packages reiserfs rw,noatime 0 0
So I dunno what's going on anymore, but I can't rm them and I can't umount them.