On 09/17/15 15:38, Martin Pitt wrote: > > Okay, so you do have such a device indeed. I don't see what's wrong > then. Can you please run > > sh -x /var/lib/dpkg/info/udev.postinst configure 220-6 > > as root and copy&paste the entire output? >
Ah, I see. The udev.postinst script is hardware dependent and evaluated only once at upgrade time, breaking dpkg-reconfigure. The system in question is a bootable USB stick, supposed to run on all my hardware. I boot it in kvm only for maintenance (e.g. for the upgrade). This time the upgrade was done on a real laptop and booted in kvm later. Wouldn't it be more reasonable to add this virtio specific code unconditionally? There might be 2 or more real or virtual network interfaces at upgrade time, e.g. both e1000 and virtio. This shouldn't affect the outcome. My suggestion would be to add a debconf dialog to enable/disable the "network renaming code" (independent from the network interface driver). Using dpkg-reconfigure we would have the usual config interface for this feature, giving everybody a way to choose and to change later. > > Yes, that's a different case -- e1000 (and most other devices) got the > new names since 220-7 already, and there's a different upgrade > mechanism in place. This issue is specifically about virtio devices, > see the commit ref in the initial bug report. > I don't see why this is a different case. Using kvm the e1000 is as virtual as the virtio interface. And its affected by the same broken network configuration after the udev upgrade. ??? Regards Harri
+ update_hwdb + systemd-hwdb --usr update + addgroup --system input addgroup: The group `input' already exists as a system group. Exiting. + [ -z 220-6 ] + upgrade_fixes configure 220-6 + dpkg --compare-versions 220-6 lt 204-1 + dpkg --compare-versions 220-6 lt 226-1 + update-rc.d udev-finish remove + dpkg --compare-versions 220-6 lt-nl 220-7~ + [ ! -e /etc/udev/rules.d/70-persistent-net.rules ] + dpkg --compare-versions 220-6 lt-nl 226-2~ + [ ! -e /etc/systemd/network/50-virtio-kernel-names.link ] + ls -d /sys/bus/virtio/drivers/virtio_net/virtio0 + echo virtio network devices detected, disabling predictable interface names in /etc/systemd/network/50-virtio-kernel-names.link virtio network devices detected, disabling predictable interface names in /etc/systemd/network/50-virtio-kernel-names.link + mkdir -p /etc/systemd/network/ + cat + chrooted + stat -c %d/%i / + stat -Lc %d/%i /proc/1/root + [ 2050/2 = 2050/2 ] + return 1 + [ -e /etc/udev/kernel-upgrade ] + can_start_udevd + supported_kernel + uname -r + return 0 + [ ! -d /sys/class/ ] + ps --no-headers --format args ax + egrep -q ^\[ + grep -q [[:space:]]devtmpfs$ /proc/filesystems + [ -e /etc/udev/disabled ] + return 0 + handle_service_rename + dpkg --compare-versions lt 204-1 + [ -d /run/systemd/system ] + rm -f /run/systemd/system/systemd-udevd.service + rm -f /run/systemd/system/udev.service + [ -d /run/systemd/system ] + invoke-rc.d udev restart Stopping the hotplug events dispatcher: systemd-udevd. Starting the hotplug events dispatcher: systemd-udevd. + update_initramfs + [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ] + update-initramfs -u update-initramfs: Generating /boot/initrd.img-4.2.0 + [ -x /etc/init.d/udev ] + update-rc.d udev defaults + dpkg-maintscript-helper rm_conffile /etc/init.d/udev-mtab 204-1~ -- configure 220-6 dpkg-maintscript-helper: error: couldn't identify the package + dpkg-maintscript-helper rm_conffile /etc/udev/links.conf 204-9~ -- configure 220-6 dpkg-maintscript-helper: error: couldn't identify the package + dpkg-maintscript-helper rm_conffile /etc/init.d/udev-finish 226-1~ -- configure 220-6 dpkg-maintscript-helper: error: couldn't identify the package + dpkg-maintscript-helper rm_conffile /etc/init/udev-finish.conf 226-1~ -- configure 220-6 dpkg-maintscript-helper: error: couldn't identify the package + dpkg-maintscript-helper rm_conffile /etc/init/udev-fallback-graphics.conf 226-1~ -- configure 220-6 dpkg-maintscript-helper: error: couldn't identify the package + dpkg-maintscript-helper symlink_to_dir /usr/share/doc/udev libudev1 221-2~ -- configure 220-6 dpkg-maintscript-helper: error: environment variable DPKG_MAINTSCRIPT_NAME is required
signature.asc
Description: OpenPGP digital signature