Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Aggiornare udev alla versione 197
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Mar 10, 2013 3:11 pm    Post subject: Aggiornare udev alla versione 197 Reply with quote

Ciao a tutti,

ho già effettuato un aggiornamento di udev alla versione 197 dalla 171 su un PC nel quale non avevo grossi problemi ad effettuare il passaggio, ma prima di farlo sul mio laptop vorrei chiedere alcune cose, visto che già su quel PC ho avuto un problemino. Il problema è che avevo fatto sì che alcuni device (hard disk, lettori mp3, ecc.) venissero rimappati come /dev/mio_hd, /dev/lettore_mp3, ecc, ma ora questo non funziona più.

Prima di incorrere nello stesso problema con il portatile, dove ho dei mappaggi personali specialmente per quel che riguarda le interfacce di rete, vorrei capire come risolvere sin da prima di trovarmi nella situazione di casino che prevedo.

Ho letto tutto quello che c'è scritto qui ma ho paura che quanto ci sia scritto non risolva il mio problema.

Quindi, la domanda è la seguente: tenendo presente che avevo creato delle regole per rimappare un lettore mp3, un hard disk, quattro interfacce di rete, e che avevo aggiunto una regola per android (su suggerimento del sito di sviluppo android) come posso fare per rimettere tutto a posto dopo l'aggiornamento?

Al momento ho mascherato udev 197 e superiori, ma vorrei aggiornare. Cosa suggerite?
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Tue Mar 12, 2013 8:47 pm    Post subject: Reply with quote

Io personalmente ti posso dire che sono andato dritto, tanto sul mio portatile non ho cose mistiche che possano rompersi... Ho cancellato le regole autogenerate della rete, ho riavviato... E tutto è rimasto come prima :P

Io farei un backup di /etc/udev* e proverei ad avanzare. Alla peggio fai un bel downgrade.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Fri Mar 15, 2013 5:29 pm    Post subject: Reply with quote

News: dopo l'ultimo aggiornamento ancora i nomi non sono cambiati. Ti incollo però un file molto interessante:

Code:
# cat /etc/udev/rules.d/80-net-name-slot.rules
#
# Udev 197 and above has implemented predictable network interface names
# for hardware network interfaces. This new scheme does not affect
# stacked network interfaces such as bonds, bridges or vlans.
#
# This file is here to prevent your interfaces from being renamed automatically,
# because the new names will be drastically different from the eth*, wlan*, etc
# names you are used to working with.
#
# To activate this function, move this file to a name that doesn't end in.rules,
# or remove it then reboot your system.
#
# If you want to deactivate this function, install a udev rules file as
# /etc/udev/rules.d/80-net-name-slot.rules then reboot your system.
#
# This functionality has not been tested with gentoo. In fact, we are aware that
# things will break if you activate it.
#
# If you are not comfortable testing this, leave this file as is. We will
# publish a news item when you can migrate.
#
# If you do want to activate and help us come up with a migration plan, feel
# free to do so and report bugs.
# Your bugs should block the following tracker:
# https://bugs.gentoo.org/show_bug.cgi?id=450938
#
# Before you activate this function, it is important that you fully understand
# the following documentation:
#
# http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
#
# Also, be aware that you can get the attributes of your network interface that
# would be used to name the interface in the new scheme by doing the following
# with this version of udev running:
#
# udevadm test-builtin net_id /sys/class/net/ifname 2> /dev/null
#
# for example, on my system, I can find that eth0's new name would be enp1s5.
#

_________________
Linux registered user 461710
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Fri Mar 15, 2013 9:08 pm    Post subject: Reply with quote

Bene!

Quindi questo pezzo:
Code:
# This file is here to prevent your interfaces from being renamed automatically,
# because the new names will be drastically different from the eth*, wlan*, etc
# names you are used to working with.

indica che aggiornando udev, viene creato questo file per far sì che le cose rimangano come prima?

Non mi è molto chiaro.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Fri Mar 15, 2013 9:59 pm    Post subject: Reply with quote

fbcyborg wrote:
Bene!

Quindi questo pezzo:
Code:
# This file is here to prevent your interfaces from being renamed automatically,
# because the new names will be drastically different from the eth*, wlan*, etc
# names you are used to working with.

indica che aggiornando udev, viene creato questo file per far sì che le cose rimangano come prima?

Non mi è molto chiaro.

Sì, esatto. Questo file inibisce il nuovo sistema di nomenclatura. E sotto ti sconsigliano di eliminarlo prima che abbiano finito di testare il nuovo sistema :D
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat Mar 16, 2013 1:05 pm    Post subject: Reply with quote

Ottimo!

Beh, non resta che testarlo allora!

Grazie! In caso ti faccio sapere.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Mar 17, 2013 11:17 am    Post subject: Reply with quote

OK! Per il momento sembra essere tutto a posto! :)
L'unico problema che ho ora è che non mi mappa (ad esempio) un ipod che avevo configurato, su /dev/ipod.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sun Mar 17, 2013 11:58 am    Post subject: Reply with quote

Che sia cambiata la sintassi delle regole? Io non ne ho su questo portatile, quindi non ti so dire.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sun Mar 17, 2013 1:20 pm    Post subject: Reply with quote

L'ultima volta ho fatto riferimento a questa pagina. Sarà vecchiotta la guida, ma funzionava. Fra le guide ufficiali di udev non ho ancora trovato nulla per il momento.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum