You are not logged in.

#1 2008-12-04 14:11:06

zosodk69
Member
Registered: 2005-01-30
Posts: 30

udev rule breaking my machine

My machine boots as far as the "Loading UDev uevents" point then stops and I see the following error:

iTCO_wdt: Unexpected close, not stopping watchdog!

At this point I have about 10 seconds before my machine does a hard reboot.  From what I can tell udev is getting hung on a rule I have under /etc/udev/rules.d/00-myrules.rules.  The rule is:

IMPORT{program}="vol_id --export $tempnode"

When I comment out this line my machine boots fine.  Digging into rc.sysinit, the exact command that is triggering this hang is /sbin/udevadm trigger.

The full listing of said rule file is:

IMPORT{program}="vol_id --export $tempnode"

ENV{ID_FS_UUID}!="aa068b0a-456f-4a76-9ab7-d076d540b5a7", GOTO="not_data2"
ACTION=="add", RUN+="/bin/start-stop-daemon --start --background --pidfile=/var/run/daemons/cryptsetup --startas /usr/sbin/cryptsetup -S -- -d /etc/data2.key luksOpen /dev/%k data2"
ACTION=="remove", RUN+="/usr/sbin/cryptsetup luksClose data2"
LABEL="not_data2"

My machine is a Dell Latitude D830 running Arch 64.  Kernel 2.6.27.7-1 and udev 130-1.

Last edited by zosodk69 (2008-12-04 14:15:30)


-=[dave]=-

Offline

#2 2008-12-04 14:54:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev rule breaking my machine

Arch doesn't have /bin/start-stop-daemon. Was this rule working for you?

Offline

#3 2008-12-04 15:32:48

zosodk69
Member
Registered: 2005-01-30
Posts: 30

Re: udev rule breaking my machine

[dave@hendrix ~]$> yaourt -Ss start-stop-daemon
aur/start-stop-daemon 1.13.25-1 [installed]
    A Debian program for starting daemons from initscripts

The rule works fine for me if I uncomment the IMPORT line and run:

sudo udevadm control --reload-rules

-=[dave]=-

Offline

#4 2008-12-05 20:22:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev rule breaking my machine

heh.. apologies for that. There's a udev debug mode AFAIR - maybe that will give you something to work with.

Offline

Board footer

Powered by FluxBB