Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318255 - app-misc/actkbd installs binary into /usr therefore blocks actkbd startup via udev
Summary: app-misc/actkbd installs binary into /usr therefore blocks actkbd startup via...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 09:58 UTC by Grygoriy I. Fuchedzhy
Modified: 2010-05-03 11:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grygoriy I. Fuchedzhy 2010-05-03 09:58:27 UTC
I have several /dev/input/event* device files on my system, my keyboard was /dev/input/event3 for a long period of time and I had started and stopped actkbd using /etc/conf.d/local.st{art,op}. After upgrade to new kernel my keyboard becomes /dev/input/event6 sometimes. So I can't start actkbd with hardcoded '-d /dev/input/event3' parameter.

I tried to start actkbd using udev as was adviced by its documentation. But the problem is that actkbd binary was installed into /usr/bin but I have /usr on separate partition. Therefore on system's startup when keyboard device file discovered by udev /usr is not mounted yet, so actkbd startup fails.

I think actkbd binary should be installed into /bin directory.

Reproducible: Always
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-05-03 10:19:22 UTC
Maybe you can use /dev/input/by-path/... or /dev/input/by-id/ as fixed name.

I don't think that /bin would comply with FHS on userland binaries. It's kind of your decision to remove /usr from kernels root= .

Of course you can copy to /bin, or to /usr/bin/ on the / partition ("mount /dev/root /mnt ; tar c /usr/bin/actkbd | tar cvC /mnt ; umount /mnt") but check if actkbd needs external libs and update it upon actkbd update.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-05-03 10:26:24 UTC
(In reply to comment #1)
> Of course you can copy to /bin, or to /usr/bin/ on the / partition ("mount
> /dev/root /mnt ; tar c /usr/bin/actkbd | tar cvC /mnt ; umount /mnt") but check
> if actkbd needs external libs and update it upon actkbd update.

Better not copy it to the shadow'ed /usr path. this may lead to some confusing moments, when you have forgotten, at some point in the future, that the /usr/bin/actkbd which is visible at normal runlevel is not the one seen by udevd during startup.

Comment 3 Grygoriy I. Fuchedzhy 2010-05-03 11:43:23 UTC
Copying actkbd is really ugly.

I have tried ../by-path/.. thing and it works fine for me, thanks!
So I think this should be resolved as invalid.