FS#17240 - [laptop-mode-tools] add mkdir /var/run/laptop-mode-tools/ to rc.d script
Attached to Project:
Arch Linux
Opened by jon (emphire) - Sunday, 22 November 2009, 03:56 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 26 November 2009, 20:12 GMT
Opened by jon (emphire) - Sunday, 22 November 2009, 03:56 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 26 November 2009, 20:12 GMT
|
Details
Description:
I run /var/run on a tmpfs so /var/run gets wiped clean each time I reboot. laptop-mode-tools writes to the directory /var/run/laptop-mode-tools/ and gives an error message when starting if it is missing. Would it be possible to add "mkdir -p /var/run/laptop-mode-tools/" to the rc.d script before loading laptop-mode-tools? Thanks! Additional info: * package version(s): laptop-mode-linux-1.52-1 Steps to reproduce: echo "tmpfs /var/run tmpfs size=2M 0 0" >> /etc/fstab mount /var/run /etc/rc.d/laptop-mode start |
This task depends upon
Closed by Eric Belanger (Snowman)
Thursday, 26 November 2009, 20:12 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in svn
Thursday, 26 November 2009, 20:12 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in svn
FS#13231I don't see an issue with creating this in the initscript
$ pacman -Ql laptop-mode-tools |grep run
laptop-mode-tools /var/run/
laptop-mode-tools /var/run/laptop-mode-tools/
It's missing here because the user is using tmpfs for /var/run. Isn't this bug in fact a request for tempfs support for /var/run? See http://www.archlinux.org/pipermail/arch-general/2009-February/003564.html
Remember that pacman does not track directories, only files.
I can't think of any action a user might want to take other than creating the missing directory in when one is missing under /var/run... I don't understand why pacman would be hadling any files under /var/run since they are dynamically created and deleted... should directories be any different?