Thread (5 messages) 5 messages, 4 authors, 2013-09-19

Re: [PATCH] static-nodes: add shell consumable format

From: Tom Gundersen <hidden>
Date: 2013-09-19 15:53:08

On Thu, Sep 19, 2013 at 5:44 PM, Lucas De Marchi
[off-list ref] wrote:
On Thu, Sep 19, 2013 at 9:48 AM, Dave Reisner [off-list ref] wrote:
quoted
This adds an additional format to kmod static-nodes, which writes
output as shell commands, e.g.:

  mknod '/dev/btrfs-control' c 10 234
  mknod '/dev/loop-control' c 10 237
  mkdir -m 755 -p '/dev/net'
  mknod '/dev/net/tun' c 10 200

Consumers of this format can simply pipe the output to a shell,
creating the necessary static nodes. This could be useful for an
initramfs which doesn't have systemd-tmpfiles but which still relies on
static node creation which recent udev will no longer handle.
I got a similar request from Harald (CC'ed), but instead to create the
nodes ourselves.

The way you did fits better with the current purpose of the
static-nodes, but I'm ok with creating the nodes ourselves, too.
For what it is worth, the reason I didn't originally create the nodes
in kmod was that I didn't want to redo mkdir_label_parents() and
label_context_set() in kmod. If you don't use SELinux I guess this
doesn't matter though.

Harald: why not put systemd-tmpfiles in dracut?

Cheers,

Tom
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help