Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 311365

Summary: System hangs on shutdown/reboot in halt.sh when sshfs mounted
Product: Gentoo Linux Reporter: steve <fourstar10_2000>
Component: [OLD] baselayoutAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description steve 2010-03-25 23:52:42 UTC
My systems hang on shutdown/reboot @ "Unmounting filesystems" when I have a sshfs mount.

adding echos to halt.sh I found it hangs unmounting "/sys/kernel/security"

I found if I commented out this code:
------------------------- 
    # If we're using the mount (probably /usr) then don't unmount us
    if [[ " $(fuser -m "${x}" 2>/dev/null) " == *" $$ "* ]] ; then
        continue
    fi
-------------------------

and a sshfs mount exists, the system reboots ok.

I don't understand what  *" $$ "* is, so i dont have a fix.

thanks
steve


Reproducible: Always

Steps to Reproduce:
1.sshfs root@somemachine:/somedir somedir
2.reboot
3.system hangs @ "Unmounting filesystems"



Expected Results:  
system reboots
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-31 18:33:47 UTC
I cannot replicate the issue.
Please update your sshfs-fuse version. 
Add the used versions, emerge --info etc. before reopening if the problem persists.