ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] udev-185 и статические устройства, tmpfiles
@ 2012-06-13 12:43 Alexey Shabalin
  2012-06-13 13:08 ` Dmitry V. Levin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Shabalin @ 2012-06-13 12:43 UTC (permalink / raw)
  To: ALT Linux Team development discussions

День добрый.
В новом udev убрали возможность копирования устройств из /lib/udev/devices.
Для SysV я добавил в init-скрипт
create_static_inodes()
{
           [ -d /lib/udev/devices -a -n "`ls -A /lib/udev/devices`" ] && \
                       cp -a /lib/udev/devices/* "$udev_root/"
}

А вот для systemd я не стал делать ничего подобного и предлагаю
воспользоваться методом, предлагаемым апстримом.
А именно возможностью tmpfiles.d
Кое-что уже можно взять из федоры, что-то придётся сделать самим.
Например, в cups можно добавить файл (как и в федора):

cat > ${RPM_BUILD_ROOT}%{_prefix}/lib/tmpfiles.d/cups-lp.conf <<EOF
# This file is part of cups.
#
# Legacy parallel port character device nodes, to trigger the
# auto-loading of the kernel module on access.
#
# See tmpfiles.d(5) for details

c /dev/lp0 0660 root lp - 6:0
c /dev/lp1 0660 root lp - 6:1
c /dev/lp2 0660 root lp - 6:2
c /dev/lp3 0660 root lp - 6:3
EOF

Количесто пакетов, которые надо починить не велико:
grep /lib/udev/devices contents_index | awk '{print($2)}' | uniq
udev
fuse
losetup
cups
ppp
brltty

Следующее пожелание - упаковывайте tmpfiles не в /etc/tmpfiles.d а в
/lib/tmpfiles.d

Ещё затрону следующую проблему, т.к. она тоже связана с tmpfiles.
На системах с systemd /var/lock тоже расположена на tmpfs.
Соответстенно вложенные директории тоже надо создавать с помощью tmpfiles.
Вот список таких пакетов:
grep /var/lock contents_index | awk '{print($2)}' | uniq
filesystem
cvs
mod_dav
ejabberd
grass
apache2-common
lvm2
mailman
man
leafnode
nginx
libploop
libsane

Их тоже надо "чинить".


-- 
Alexey Shabalin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-14  6:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 12:43 [devel] udev-185 и статические устройства, tmpfiles Alexey Shabalin
2012-06-13 13:08 ` Dmitry V. Levin
2012-06-13 13:37   ` Alexey Shabalin
2012-06-13 17:02   ` Michael Shigorin
2012-06-13 21:35   ` Alexey Gladkov
2012-06-14  6:06     ` Anton Farygin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git