From: Alexey Shabalin <a.shabalin@gmail.com> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] udev-185 и статические устройства, tmpfiles Date: Wed, 13 Jun 2012 16:43:59 +0400 Message-ID: <CAEdvWkRX4=7K3vhUGb4Z+-EkNMmJgodXR1ws5sVVEO3X264naw@mail.gmail.com> (raw) День добрый. В новом 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
next reply other threads:[~2012-06-13 12:43 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-13 12:43 Alexey Shabalin [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAEdvWkRX4=7K3vhUGb4Z+-EkNMmJgodXR1ws5sVVEO3X264naw@mail.gmail.com' \ --to=a.shabalin@gmail.com \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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