Bug#812932: udev postinst blocking upgrades in LXC container
Grant McLean
grant at catalyst.net.nz
Thu Jan 28 00:33:12 GMT 2016
On Thu, 2016-01-28 at 00:30 +0100, Michael Biebl wrote:
> Can you post the output of
> insserv -s
This is the output from insserv in a container where we experience the
problem:
# insserv -s
K:01:0 6:urandom
K:06:0 6:umountfs
K:04:0 6:hwclock.sh
K:01:0 1 6:apache2-be
K:05:0 6:networking
K:03:0 1 6:rsyslog
K:01:0 1 6:puppet
K:04:0 6:umountnfs.sh
K:02:0 6:sendsigs
K:01:0 1 6:scheduler
K:01:0 1 6:nagios-nrpe-server
K:08:0:halt
K:01:0 1 6:atd
K:01:0 1 6:exim4
K:08:6:reboot
K:07:0 6:umountroot
S:02:S:udev
S:10:S:urandom
S:08:S:mountall.sh
S:09:S:mountall-bootclean.sh
S:04:S:hwclock.sh
S:02:2 3 4 5:apache2-be
S:11:S:networking
S:01:2 3 4 5:rsyslog
S:01:S:mountkernfs.sh
S:03:2 3 4 5:puppet
S:12:S:mountnfs.sh
S:13:S:mountnfs-bootclean.sh
S:02:2 3 4 5:scheduler
S:03:S:mountdevsubfs.sh
S:05:S:checkroot.sh
S:02:2 3 4 5:nagios-nrpe-server
S:02:2 3 4 5:atd
S:02:2 3 4 5:exim4
S:01:1:killprocs
S:01:1 2 3 4 5:motd
S:01:S:hostname.sh
S:01:1 2 3 4 5:bootlogs
S:02:1:single
S:02:2 3 4 5:dbus
S:04:2 3 4 5:rmnologin
S:04:2 3 4 5:rc.local
S:02:2 3 4 5:loadcpufreq
S:03:2 3 4 5:cpufrequtils
S:02:2 3 4 5:rsync
S:02:2 3 4 5:ssh
S:02:2 3 4 5:cron
S:14:S:bootmisc.sh
S:07:S:checkroot-bootclean.sh
S:06:S:checkfs.sh
S:10:S:udev-finish
S:14:S:x11-common
S:10:S:procps
S:01:2 3 4 5:sudo
Also I added set -x to udev.postinst and got this output:
# /var/lib/dpkg/info/udev.postinst configure && echo 'success!'
+ update_hwdb
+ udevadm hwdb --update --usr
+ addgroup --quiet --system input
+ [ -z ]
+ chrooted
+ stat -c %d/%i /
+ stat -Lc %d/%i /proc/1/root
+ [ 64769/5767832 = 64769/5767832 ]
+ return 1
+ in_debootstrap
+ [ -d /debootstrap/ ]
+ return 1
+ write_interfaces_rules
+ local devpath
+ [ -d /sys/class/net/eth0 ]
+ udevadm test --action=add /sys/class/net/eth0
calling: test
version 215
load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
timestamp of '/lib/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 24576 bytes tokens (2048 * 12 bytes), 11225 bytes strings
1828 strings (21697 bytes), 1199 de-duplicated (11102 bytes), 630 trie
nodes used
IMPORT builtin 'net_id' /lib/udev/rules.d/75-net-description.rules:6
IMPORT builtin 'path_id' /lib/udev/rules.d/80-net-setup-link.rules:5
IMPORT builtin 'path_id' returned non-zero
IMPORT builtin
'net_setup_link' /lib/udev/rules.d/80-net-setup-link.rules:11
Config file /lib/systemd/network/99-default.link applies to device eth0
RUN 'net.agent' /lib/udev/rules.d/80-networking.rules:1
RUN '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name
--prefix=/proc/sys/net/ipv4/neigh/$name
--prefix=/proc/sys/net/ipv6/conf/$name
--prefix=/proc/sys/net/ipv6/neigh/$name' /lib/udev/rules.d/99-systemd.rules:61
unload module index
Unloaded link configuration context.
+ [ -d /sys/class/net/lo ]
+ udevadm test --action=add /sys/class/net/lo
calling: test
version 215
load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
timestamp of '/lib/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 24576 bytes tokens (2048 * 12 bytes), 11225 bytes strings
1828 strings (21697 bytes), 1199 de-duplicated (11102 bytes), 630 trie
nodes used
IMPORT builtin 'net_id' /lib/udev/rules.d/75-net-description.rules:6
IMPORT builtin 'path_id' /lib/udev/rules.d/80-net-setup-link.rules:5
IMPORT builtin 'path_id' returned non-zero
IMPORT builtin
'net_setup_link' /lib/udev/rules.d/80-net-setup-link.rules:11
Config file /lib/systemd/network/99-default.link applies to device lo
RUN 'net.agent' /lib/udev/rules.d/80-networking.rules:1
unload module index
Unloaded link configuration context.
+ enable_udev
+ can_start_udevd
+ supported_kernel
+ uname -r
+ return 0
+ [ ! -d /sys/class/ ]
+ ps --no-headers --format args ax
+ egrep -q ^\[
+ echo udev does not support containers, not started.
udev does not support containers, not started.
+ return 1
+ return 0
+ update_initramfs
+ [ -x /usr/sbin/update-initramfs -a
-e /etc/initramfs-tools/initramfs.conf ]
+ return 0
+ [ -x /etc/init.d/udev ]
+ update-rc.d udev defaults
insserv: Service mountkernfs has to be enabled to start service udev
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
+ exit 1
More information about the Pkg-systemd-maintainers
mailing list