GNOME Bugzilla – Bug 610488
Intermittent sabayon-apply failure in Editor, wrong $HOME directory
Last modified: 2010-02-20 04:51:42 UTC
sabayon-2.29.5 When running the Sabayon Editor on an existing profile, there is an intermittent issue where sabayon-apply appears to fail to apply files and directories in a peculiar way. http://wtogami.fedorapeople.org/temp/sabayon-wtf.png GNOME and nautilus appears to see the files/directories applied by the Sabayon profile, but ls -l in a terminal fails to see it. http://wtogami.fedorapeople.org/temp/sabayon-wtf2.png Here we see what is actually going on. nautilus believes its home directory is different from the environment that the terminal sees. Sometimes it works properly where the environments patch. Sometimes it fails in the above way. There appears to be some timing issue or race condition going on.
s/patch/match/
Created attachment 154248 [details] [review] Diff of debuglog between WORKING and BROKEN MainThread (usermod): Executing ['/usr/sbin/usermod', '-d', '/tmp/sabayon-temp-home-TEMPHOMEDIR', 'sabayon'] +usermod: user sabayon is currently logged in MainThread (proto-session): Clobbering existing processes running as user 'sabayon': ['/usr/bin/pkill', '-u', 'sabayon'] Then things go downhill from here. Looking at shadow-utils source next.
commit b4414f41c2c671ba1aa5853f46ed795362163d7e Author: Warren Togami <wtogami@redhat.com> Date: Fri Feb 19 23:48:16 2010 -0500 Bug #610488: Kill previous sabayon processes, wait at most 30 seconds for the processes to die. Even without the kill it seems to take at most 5 seconds. Eh... good enough. Clean it up more if you want.