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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 19, 2013 at 5:44 PM, Lucas De Marchi
<lucas.de.marchi@xxxxxxxxx> wrote:
> On Thu, Sep 19, 2013 at 9:48 AM, Dave Reisner <dreisner@xxxxxxxxxxxxx> wrote:
>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux