UBI, udev and systemd

Ricard Wanderlof ricard.wanderlof at axis.com
Mon May 13 03:50:56 EDT 2013


On Fri, 10 May 2013, Artem Bityutskiy wrote:

> On Mon, 2013-04-08 at 15:17 +0200, Ricard Wanderlof wrote:
>> I know this might be a more systemd-related issue, however, it seems
>> that
>> there might be something about the way UBI reports device state
>> changes to
>> udev etc, or that just someone using UBI and systemd on their system
>> has
>> had a similar problem and solved it.
>
> I do not think UBI is doing anything special, it uses standard Linux
> infrastructure API for creating the devices, and deleting them.

I never followed this up on the list because there were no other responses 
so I figured there was no other interest.

You are right, there's nothing special about UBI, except that for udev it 
comes up as its own subsystem type "ubi". There are lots of default rules 
for disk devices which place them under systemd control, but nothing for 
UBI, at least not in the build I was working on. Adding the line

SUBSYSTEM=="ubi", GROUP="disk", TAG+="systemd"

to the appropriate rules file allowed systemd to receive UBI subsystem 
updates, and all was well.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list