[Gllug] Bootable USB backup like OS X dmg?
John Edwards
john at cornerstonelinux.co.uk
Tue May 31 13:39:45 UTC 2011
On Tue, May 31, 2011 at 02:20:35PM +0100, Steve Parker wrote:
> On 30/05/11 11:59, Nix wrote:
>> On 30 May 2011, Steve Parker outgrape:
>>> It depends on the type of machine, and what you are trying to achieve.
>>> For a PC, then yes, the dynamic way in which the current Linux kernel
>>> and udev works is great. With more than one NIC, there is no guarantee
>>> that they will both be detected as eth0/eth1 respectively on different
>>> boots.
>> udev has been able to bind names to network interfaces by MAC for many
>> years (following which those names will not change), and has had a rule
>> generator to automate that process after first boot for almost as long.
>
> Yes, although I don't like hard-coding MAC addresses (with RHEL you
> can put the MAC in ifcfg-NIC); NICs don't often fail, but when they
> do, and you replace it with a new one, I want it to be detected
> based on its PCI address. udev can do it by PCI too, so I have a
> script in the build which does that for me.
>
> What's the rule generator? I haven't come across that
It will depend on your distribution, but for the current Ubuntu and
Debian setups of udev it is:
/lib/udev/rules.d/75-persistent-net-generator.rules with the rules
with the rules being written to:
/etc/udev/rules.d/70-persistent-net.rules
The PCI address of each device is included in the comments, so I
suspect that the udev rules generator script could be hacked to
use this instead of the MAC.
--
#---------------------------------------------------------#
| John Edwards Email: john at cornerstonelinux.co.uk |
#---------------------------------------------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 205 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20110531/431665d1/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list