chiark / gitweb /
rules: Add symlink rule for virtio ports
authorAmit Shah <amit.shah@redhat.com>
Thu, 21 Jan 2010 13:15:04 +0000 (18:45 +0530)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 21 Jan 2010 13:21:42 +0000 (14:21 +0100)
commit7b79a59b28539a05458bec652781d42d20adc2f9
tree66c37b53cfbf31b41d31ea03e767b2ae9b7721f9
parent2b8a57353677d73219bee2d56307d40e63fde196
rules: Add symlink rule for virtio ports

virtio ports spawned by the virtio_console.c driver can have 'names'
assigned to them by hosts. The ports are distinguishable using these
names. Make a rule to create a symlink to the chardev associated for a
port with a name.

The symlink created is:
    /dev/virtio-ports/org.libvirt.console0 -> /dev/vport0p0

if the first port for the first device was given a name of
'org.libvirt.console0'.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
rules/rules.d/50-udev-default.rules