Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342403 - sys-fs/udev-151-r4: /lib/udev/move_tmp_persistent_rules.sh needs bash
Summary: sys-fs/udev-151-r4: /lib/udev/move_tmp_persistent_rules.sh needs bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 23:47 UTC by Faustus
Modified: 2010-10-30 13:55 UTC (History)
0 users

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 Faustus 2010-10-23 23:47:39 UTC
In /lib/udev/move_tmp_persistent_rules.sh:
  . /etc/init.d/functions.sh
which doesn't work with "#!/bin/sh" and /bin/sh not pointing to bash.

On that note, it would be really helpful if /etc/init.d/udev-postmount had some ebegin/eend. The reason for this bug was a pain to discover.
Comment 1 Faustus 2010-10-24 00:13:00 UTC
PS. Why not just put /lib/udev/move_tmp_persistent_rules.sh into 
/lib/udev/move_tmp_persistent_rules.sh ?
Comment 2 Faustus 2010-10-24 00:13:34 UTC
(In reply to comment #1)
> PS. Why not just put /lib/udev/move_tmp_persistent_rules.sh into 
> /lib/udev/move_tmp_persistent_rules.sh ?

Into /etc/init.d/udev-postmount, that is.
Comment 3 Faustus 2010-10-24 13:31:03 UTC
Another comment: this issue apparently manifests in baselayout-1 (where functions.sh needs bash). See discussion in bug #342399.
Comment 4 Matthias Schwarzott gentoo-dev 2010-10-26 18:28:28 UTC
The line ". /etc/init.d/functions.sh" itself is perfectly valid in /bin/sh.
As stated in comment #3, this seems to be a baselayout issue.
I think I should just move the file inside the init-script as suggested.
Comment 5 Matthias Schwarzott gentoo-dev 2010-10-30 13:55:01 UTC
Included move_tmp_persistent_rules into udev-postmount.