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

Bug 46876

Summary: hotplug usb.agent error on reboot/shutdown
Product: Gentoo Linux Reporter: Jeff <jtw>
Component: [OLD] Core systemAssignee: Greg Kroah-Hartman (RETIRED) <gregkh>
Status: RESOLVED WONTFIX    
Severity: minor CC: base-system
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeff 2004-04-05 10:45:04 UTC
I get the following on reboot:
usb.agent line 439 Cannot remove /var/run/usb is a directory.
My simple fix was to change:
(line 439)$REMOVER
    fi
    rm -f $REMOVER

to:
        $REMOVER
    fi
    rm -rf $REMOVER

BTW-Thanks for all your recent work on hotplug Greg KH, much appreciated.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-04-12 13:54:35 UTC
Hm, no this shouldn't be a problem, as we only want to delete the file in that directory that matches up with the device being removed, we don't want
to remove the whole directory.

Exactly what device removal causes this?
Comment 2 Jeff 2004-04-14 10:08:37 UTC
Not sure, let me change usb.agent back to original and I'll get back to you.
Comment 3 Jeff 2004-04-14 10:13:18 UTC
Couple of days ago upgraded kernel to 2.6.5, not getting it now after changing back usb.agent.
False alarm I guess, sorry 'bout that.