bootmisc init script, 2nd try

Allow to create /var/lock/.keep.  This prevents Portage from destroying /var/lock under certain conditions.  This patch is Gentoo specific.

Signed-off-by: Chris Richards <gizmo@giz-works.com>
Signed-off-by: Chris PeBenito <cpebenito@tresys.com>
This commit is contained in:
Chris Richards 2010-04-24 16:03:16 +00:00 committed by Chris PeBenito
parent 05a2e3e2d7
commit 9b3e798ea3

View File

@ -437,6 +437,9 @@ ifdef(`distro_gentoo',`
dev_create_generic_dirs(initrc_t) dev_create_generic_dirs(initrc_t)
dev_delete_generic_dirs(initrc_t) dev_delete_generic_dirs(initrc_t)
# allow bootmisc to create /var/lock/.keep.
files_manage_generic_locks(initrc_t)
# openrc uses tmpfs for its state data # openrc uses tmpfs for its state data
fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file lnk_file }) fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file lnk_file })