Re: commit 7e92b4fc34 - x86, serial: convert legacy COM ports to platform devices - broke my serial console

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: Bjorn Helgaas <bjorn.helgaas@...>, Yinghai Lu <yhlu.kernel@...>, Shaohua Li <shaohua.li@...>, Sébastien Dugué <sebastien.dugue@...>, linux-kernel <linux-kernel@...>, <ambx1@...>, <akpm@...>, <lenb@...>, <rmk@...>, <mjg59@...>, <castet.matthieu@...>
Date: Sunday, July 29, 2007 - 1:21 pm

On Jul 27, 2007, at 17:05:30, Jeff Garzik wrote:

I was doing that for a while, but now Debian and RedHat and most  
other modern distros have a udev rules file called something like: / 
etc/udev/rules.d/z30-persistent-net-generator.rules  Under Debian it  
generates a file /etc/udev/rules.d/z25-persistent-net.rules which  
automatically renames net devices based on their mac address.  The  
persistent-net-generator takes the current name and MAC and stuffs  
them in an appropriate file.  So really once you've booted with the  
network card in, all you have to do is modify the persistent- 
net.rules file to change the name of your NIC and rerun udevtrigger.   
I've gotten into the habit of using descriptive names lately (7 chars  
is the most that ifconfig will show without truncating, and it seems  
to be unable to properly sort/display/operate-on longer ones).

For example, my Debian firewall box has:
   world: Connection to the cable modem
   switch: Connection to my VLAN-capable switch
   main0: "Primary" VLAN on my switch.
   main1: A local gigabit switch for connections to a couple other  
systems
   main: A bridge of main0 and main1 which is used as the primary LAN  
interface
   hbeat: Dedicated NIC for Linux-HA (HeartBeat)
   debian: A Debian netinst net-boot VLAN with support for PXE and  
OpenFirmware
   radius: A VLAN used by my wireless AP for radius traffic
   wifi: A VLAN used for private wireless traffic

Most of those interfaces are virtual and created by custom "/etc/ 
network/if-pre-up.d/*" scripts, but you can see the "world",  
"switch", "main1", and "hbeat" interfaces are actual physical  
interfaces.  Such naming (with appropriate comments in /etc/network/ 
interfaces) vastly eases the management of a box with a shitton of  
interfaces.  The fact that ifconfig has some outstanding bugs with  
big interface names is mostly irrelevant since I use the iproute2  
tool ("ip") to do almost all administration.

Cheers,
Kyle Moffett
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
commit 7e92b4fc34 - x86, serial: convert legacy COM ports to..., Sébastien Dugué, (Tue Jul 24, 10:28 am)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Sébastien Dugué, (Wed Jul 25, 3:45 am)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Sébastien Dugué, (Wed Jul 25, 9:32 am)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Sébastien Dugué, (Thu Jul 26, 4:08 am)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Kyle Moffett, (Sun Jul 29, 1:21 pm)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Sébastien Dugué, (Wed Jul 25, 9:38 am)
Re: commit 7e92b4fc34 - x86, serial: convert legacy COM port..., Maciej W. Rozycki, (Tue Jul 24, 2:17 pm)