Bug#780705: udev: floating net device number on devices with ro rootfs

Michael Biebl biebl at debian.org
Thu Mar 19 04:34:23 GMT 2015


Am 19.03.2015 um 04:34 schrieb You-Sheng Yang:
> On Wed, 18 Mar 2015 18:46:00 +0100 Michael Biebl <biebl at debian.org> wrote:
>> Dear You-Sheng Yang,
>>
>> first of all, the bug report was filed against the wrong package. The
>> package dealing with the network renaming is udev. Therefore reassigning
>> to udev.
> 
> Sorry, I thought it had to be filed under its source package.

In that case, you need to use Source: systemd, but using Package: udev
is correct in this case

>> Third, and this is the most important part, the patch/solution you are
>> suggesting, don't work / make any sense. The persistent network interface
>> naming feature as used by default in Debian udev requires a persistent
>> storage, i.e. a writable /etc/udev/rules.d by design. If you deviate
>> from a default Debian setup and make / or /etc ro, you can simply not
>> use this particular feature. Simple as that.
> 
> https://wiki.debian.org/ReadonlyRoot
> Looks like read-only rootfs is also permitted in Debian. Bugs blocking
> ro rootfs are accepted in other packages, and there is also a small
> section addressing udev under ro rootfs.

Let me quote the wiki:

Preconditions:
"Locations that must be writable are /etc, /home, /srv, /tmp, /var."


> Anyway, here is another patch that solves the same problem. It actually
> tries to avoid duplicated written entries in "70-persistent-net.rules".
> If there is already a rule with the same match conditions, let
> "write_net_rules" reuse the existing one and therefore it increases
> device name no more. This patch is generated directly from the device
> under test.

Not writing duplicated entries in "70-persistent-net.rules" should
indeed be the case. I'll let Marco, who wrote the code, review the
patch. He should be more familiar with it.

Marco, if you think this patch is correct and worthwile to apply, please
reopen this bug report.


Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150319/30405061/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list