cannot add to udev 70-persistent-net rules

Bug #735182 reported by Al Stone on 2011-03-14
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
live-build (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: live-build

In lb_chroot_hacks, there are these lines:

# Removing udev mac caching rule
rm -f chroot/etc/udev/rules.d/*persistent-net.rules

The problem is that several lines later this same file is touched, creating a zero length file. For a particular live-build I am working on, there is no need for this file (persistent assignment of MAC addresses to eth devices are handled entirely differently), and hence there are no udev rules to generate entries in this file.

On boot, however, udevd complains that it cannot read /etc/udev/rules.d/70-persistent-net.rules because it is zero length. Because lb_chroot_hacks removes this file, and then creates it as zero length, there's no place (that I can find, at least) where I can insert a step to cause this file to be created and saved. It will always be removed and made zero length.

So, could we either remove the line that rm's /etc/udev/rules.d/70-persistent-net.rules, or provide a hook to create your own, or have it create a non-empty file?

Thanks.

Colin Watson (cjwatson) wrote :

Are you using '--exposed-root true', then? Do you need to? This behaviour seems to be specific to that option.

Colin Watson (cjwatson) on 2011-05-23
Changed in live-build (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Al Stone (ahs3) wrote :

We are using --exposed-root true on this project. Is it required? That I'm not sure about but I'll check into it; it does appear to be the default for all of our projects.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers