Your message dated Tue, 19 Apr 2011 22:34:41 +0000
with message-id <[email protected]>
and subject line Bug#622311: fixed in udev 167-3
has caused the Debian Bug report #622311,
regarding /dev isn't fully populated when /etc/init.d/udev exits
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
622311: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622311
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: udev
Version: 167-2
Severity: normal
I add an
ls /dev
echo
sleep 5
ls /dev
at the very end of /etc/init.d/udev then reboot
On the boot screen, the first ls doesn't show my partitions
dev/sda1,/dev/sda2,etc, while the second does. Without that sleep, my
partitions aren't there by the time /etc/init.d/mountall.sh gets executed which
of course is a problem.
It would seem that the "udevadm settle" isn't doing what's expected?
Kevin
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (600, 'unstable'), (500, 'testing'), (400, 'stable'), (300,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34.8.000 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages udev depends on:
ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libselinux1 2.0.98-1 SELinux runtime shared libraries
ii libudev0 167-2 libudev shared library
ii libusb-0.1-4 2:0.1.12-17 userspace USB programming library
ii lsb-base 3.2-27 Linux Standard Base 3.2 init scrip
ii util-linux 2.17.2-9.1 Miscellaneous system utilities
Versions of packages udev recommends:
ii pciutils 1:3.1.7-8 Linux PCI Utilities
ii usbutils 1:001-1 Linux USB utilities
udev suggests no packages.
-- Configuration Files:
/etc/init.d/udev changed:
unmount_devpts() {
if mountpoint -q /dev/pts/; then
umount -n -l /dev/pts/
fi
if mountpoint -q /dev/shm/; then
umount -n -l /dev/shm/
fi
}
mount_tmpfs() {
if grep -E -q "^[^[:space:]]+ /dev (dev)?tmpfs" /proc/mounts; then
mount -n -o remount,${dev_mount_options} -t tmpfs tmpfs /dev
return
fi
if ! mount -n -o $dev_mount_options -t tmpfs tmpfs /dev; then
log_failure_msg "udev requires tmpfs support, not started."
log_end_msg 1
fi
return 0
}
create_dev_makedev() {
if [ -e /sbin/MAKEDEV ]; then
ln -sf /sbin/MAKEDEV /dev/MAKEDEV
else
ln -sf /bin/true /dev/MAKEDEV
fi
}
supported_kernel() {
case "$(uname -r)" in
2.[012345].*|2.6.[0-9]|2.6.[0-9][!0-9]*) return 1 ;;
2.6.1[0-9]|2.6.1[0-9][!0-9]*) return 1 ;;
2.6.2[0-6]|2.6.2[0-6][!0-9]*) return 1 ;;
esac
return 0
}
my_tty() {
[ -x /bin/readlink ] || return 0
[ -e /proc/self/fd/0 ] || return 0
readlink --silent /proc/self/fd/0 || true
}
warn_if_interactive() {
if [ "$RUNLEVEL" = "S" -a "$PREVLEVEL" = "N" ]; then
return
fi
TTY=$(my_tty)
if [ -z "$TTY" -o "$TTY" = "/dev/console" -o "$TTY" = "/dev/null" ]; then
return
fi
printf "\n\n\nIt has been detected that the command\n\n\t$0 $*\n\n"
printf "has been run from an interactive shell.\n"
printf "It will probably not do what you expect, so this script will wait\n"
printf "60 seconds before continuing. Press ^C to stop it.\n"
printf "RUNNING THIS COMMAND IS HIGHLY DISCOURAGED!\n\n\n\n"
sleep 60
}
create_dev_root_rule() {
local udevroot="$1"
[ -e $udevroot/rules.d/61-dev-root-link.rules ] && return 0
eval $(udevadm info --export --export-prefix=ROOT_ --device-id-of-file=/ \
|| true)
[ "$ROOT_MAJOR" -a "$ROOT_MINOR" ] || return 0
echo 'ACTION=="add|change", SUBSYSTEM=="block", ENV{MAJOR}=="'$ROOT_MAJOR'",
ENV{MINOR}=="'$ROOT_MINOR'", SYMLINK+="root"' \
> $udevroot/root-link-rule
mv $udevroot/root-link-rule $udevroot/rules.d/61-dev-root-link.rules
}
[ -x /sbin/udevd ] || exit 0
PATH="/sbin:/bin"
tmpfs_size="10M"
udev_root="/dev"
if [ -e /etc/udev/udev.conf ]; then
. /etc/udev/udev.conf
fi
. /lib/lsb/init-functions
if ! supported_kernel; then
log_failure_msg "udev requires a kernel >= 2.6.27, not started."
log_end_msg 1
fi
if [ ! -e /proc/filesystems ]; then
log_failure_msg "udev requires a mounted procfs, not started."
log_end_msg 1
fi
if ! grep -q '[[:space:]]tmpfs$' /proc/filesystems; then
log_failure_msg "udev requires tmpfs support, not started."
log_end_msg 1
fi
if [ ! -d /sys/class/ ]; then
log_failure_msg "udev requires a mounted sysfs, not started."
log_end_msg 1
fi
if [ ! -e /sys/kernel/uevent_helper ]; then
log_failure_msg "udev requires hotplug support, not started."
log_end_msg 1
fi
if [ "$UDEV_DISABLED" = "yes" ]; then
udev_root=/etc/udev/.dev
export UDEV_ROOT=$udev_root
fi
udev_root=${udev_root%/}
dev_mount_options='mode=0755'
if [ "$tmpfs_size" ]; then
dev_mount_options="size=${tmpfs_size},${dev_mount_options}"
fi
if [ "$udev_root" != "/dev" ]; then
log_warning_msg "udev_root != /dev/"
case "$1" in
start)
if [ -e "$udev_root/.udev/" -o -e /run/udev/ ]; then
if mountpoint -q $udev_root/; then
log_failure_msg "udev is already active on $udev_root."
log_end_msg 1
else
log_warning_msg ".udev/ already exists on the static $udev_root!"
fi
fi
echo > /sys/kernel/uevent_helper
mount -n -o $dev_mount_options -t tmpfs tmpfs $udev_root
log_daemon_msg "Starting the hotplug events dispatcher" "udevd"
if udevd --daemon; then
log_end_msg $?
else
log_end_msg $?
fi
if [ -d /run/udev/ ]; then
mkdir -p /run/udev/rules.d/
create_dev_root_rule /run/udev/
else
mkdir -p $udev_root/.udev/rules.d/
create_dev_root_rule $udev_root/.udev/
fi
log_action_begin_msg "Synthesizing initial hotplug events"
if udevadm trigger --action=add; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;
stop)
log_daemon_msg "Stopping the hotplug events dispatcher" "udevd"
if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
log_end_msg $?
else
log_end_msg $?
fi
log_action_begin_msg "Unmounting $udev_root"
# unmounting with -l should never fail
if umount -n -l $udev_root; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
udevadm control --reload-rules
;;
*)
echo "Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload}"
exit 1
;;
esac
exit 0
fi # udev_root != /dev
case "$1" in
start)
if [ -e "$udev_root/.udev/" -o -e /run/udev/ ]; then
if mountpoint -q $udev_root/; then
TMPFS_MOUNTED=1
else
log_warning_msg ".udev/ already exists on the static $udev_root!"
fi
else
warn_if_interactive
fi
echo > /sys/kernel/uevent_helper
if [ -z "$TMPFS_MOUNTED" ]; then
unmount_devpts
mount_tmpfs
[ -d /proc/1 ] || mount -n /proc
else
# and clean up part of the database of the initramfs udev
rm -rf /dev/.udev/failed/ /run/udev/failed/
fi
# set the SELinux context for devices created in the initramfs
[ -x /sbin/restorecon ] && /sbin/restorecon -R /dev
# /dev/null must be created before udevd is started
/lib/udev/create_static_nodes || true
log_daemon_msg "Starting the hotplug events dispatcher" "udevd"
if udevd --daemon; then
log_end_msg $?
else
log_end_msg $?
fi
if [ -d /run/udev/ ]; then
mkdir -p /run/udev/rules.d/
create_dev_root_rule /run/udev/
else
mkdir -p /dev/.udev/rules.d/
create_dev_root_rule /dev/.udev/
fi
log_action_begin_msg "Synthesizing the initial hotplug events"
if udevadm trigger --action=add; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
create_dev_makedev
# wait for the udevd childs to finish
log_action_begin_msg "Waiting for /dev to be fully populated"
if udevadm settle; then
log_action_end_msg 0
else
log_action_end_msg 0 'timeout'
fi
;;
stop)
log_daemon_msg "Stopping the hotplug events dispatcher" "udevd"
if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
log_end_msg $?
else
log_end_msg $?
fi
;;
restart)
log_daemon_msg "Stopping the hotplug events dispatcher" "udevd"
if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then
log_end_msg $?
else
log_end_msg $? || true
fi
log_daemon_msg "Starting the hotplug events dispatcher" "udevd"
if udevd --daemon; then
log_end_msg $?
else
log_end_msg $?
fi
;;
reload|force-reload)
udevadm control --reload-rules
;;
*)
echo "Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload}"
exit 1
;;
esac
ls /dev
echo
sleep 5
ls /dev
exit 0
/etc/modprobe.d/blacklist.conf changed:
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist am53c974
blacklist iTCO_wdt
blacklist uinput
-- debconf information:
udev/new_kernel_needed: false
udev/title/upgrade:
udev/reboot_needed:
udev/sysfs_deprecated_incompatibility:
--- End Message ---
--- Begin Message ---
Source: udev
Source-Version: 167-3
We believe that the bug you reported is fixed in the latest version of
udev, which is due to be installed in the Debian FTP archive:
gir1.2-gudev-1.0_167-3_i386.deb
to main/u/udev/gir1.2-gudev-1.0_167-3_i386.deb
libgudev-1.0-0_167-3_i386.deb
to main/u/udev/libgudev-1.0-0_167-3_i386.deb
libgudev-1.0-dev_167-3_i386.deb
to main/u/udev/libgudev-1.0-dev_167-3_i386.deb
libudev-dev_167-3_i386.deb
to main/u/udev/libudev-dev_167-3_i386.deb
libudev0_167-3_i386.deb
to main/u/udev/libudev0_167-3_i386.deb
udev-gtk-udeb_167-3_i386.udeb
to main/u/udev/udev-gtk-udeb_167-3_i386.udeb
udev-udeb_167-3_i386.udeb
to main/u/udev/udev-udeb_167-3_i386.udeb
udev_167-3.diff.gz
to main/u/udev/udev_167-3.diff.gz
udev_167-3.dsc
to main/u/udev/udev_167-3.dsc
udev_167-3_i386.deb
to main/u/udev/udev_167-3_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Marco d'Itri <[email protected]> (supplier of updated udev package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 19 Apr 2011 23:59:23 +0200
Source: udev
Binary: udev libudev0 libudev-dev udev-udeb udev-gtk-udeb libgudev-1.0-0
gir1.2-gudev-1.0 libgudev-1.0-dev
Architecture: source i386
Version: 167-3
Distribution: unstable
Urgency: high
Maintainer: Marco d'Itri <[email protected]>
Changed-By: Marco d'Itri <[email protected]>
Description:
gir1.2-gudev-1.0 - libgudev-1.0 introspection data
libgudev-1.0-0 - GObject-based wrapper library for libudev
libgudev-1.0-dev - libgudev-1.0 development files
libudev-dev - libudev development files
libudev0 - libudev shared library
udev - /dev/ and hotplug management daemon
udev-gtk-udeb - libudev shared library (udeb)
udev-udeb - /dev/ and hotplug management daemon (udeb)
Closes: 612759 622311 622400 623060 623153
Changes:
udev (167-3) unstable; urgency=high
.
* postinst: do not move /dev/.udev/ to /run/udev/ when upgrading a chroot.
(Closes: #623060)
* postinst: use invoke-rc.d to restart udev, for the benefit of systemd.
(Closes: #622400)
* Init script: move /dev/.udev/ to /run/udev/ for the benefit of older
initramfses without /run/ support.
* Init script: do not complain about /dev/.udev/ when only /run/udev/
exists. (Closes: #622311)
* preinst: added a second check for CONFIG_SYSFS_DEPRECATED using
/sys/block/, because recent kernels do not have the /sys/class/mem/*
symlinks anymore. (Closes: #612759)
* Backported the PID of another Logitech Wave keyboard. (Closes: #623153)
* 60-persistent-input.rules: check for $DISK_EJECT_REQUEST.
Checksums-Sha1:
b0d65c434783dffbf709c7313f71ed638b87ee39 1441 udev_167-3.dsc
483fa183805a14b74061dd60689826d20168a716 87001 udev_167-3.diff.gz
8cc55eaa9ee63b154de8016d0d8cf15ca51676f5 520342 udev_167-3_i386.deb
071bfe8fa638b7671aae32557ac5a3b7f8eeca78 119146 libudev0_167-3_i386.deb
c19680ced813bb0e228469e95728741758edcc43 56546 libudev-dev_167-3_i386.deb
26dcbac47f3cdbdb0927bab5dea7c1f64f7ce66e 183896 udev-udeb_167-3_i386.udeb
3bee6c19d61c686776f46f10a546cadc5b81b356 38562 udev-gtk-udeb_167-3_i386.udeb
2c3b97ca2863fcd0bba76e6493532cccd76b6dcc 104278 libgudev-1.0-0_167-3_i386.deb
6dcc99a3ad57eca7db9307d1fb6456258b9d5ed6 2950 gir1.2-gudev-1.0_167-3_i386.deb
e656b98bd638ce77c37e62658696008d4bf486e8 44254 libgudev-1.0-dev_167-3_i386.deb
Checksums-Sha256:
9571d6b7f0f2f36a3f7366fa4f3b61a1b640fdaa6cd4b3db37de4a26ec9d2f85 1441
udev_167-3.dsc
3b1663143702f58c557b617f6d7c152e8bbb077b1f3c48040b6d2c41063fd693 87001
udev_167-3.diff.gz
7aae0e1c9594e08db81cfa4579538e94c50c77a212f0972074a32102cc0ab217 520342
udev_167-3_i386.deb
4d32fa7b0eac01af7b8c1edc3850d6c9694efb3a9108635c4523f533b653b98b 119146
libudev0_167-3_i386.deb
6d5679ae3470b0e5a3a34837c971a97e33806c8e27b0f72875b87157dd40d8a7 56546
libudev-dev_167-3_i386.deb
9095f2e8a973758d3b959974143c25c21935311555f24f8e5f0dff668a69ba9e 183896
udev-udeb_167-3_i386.udeb
f61450d951886f45a959bf1243834510ca0e88dfe459769bb63fa031da65c3e6 38562
udev-gtk-udeb_167-3_i386.udeb
2bb797ea43bda5585676ea95e401b1c3183e81b5e8673d043f72643bb1c6c409 104278
libgudev-1.0-0_167-3_i386.deb
99b48c829fd433bb8104f21ec6483a3c1e152fe48c45aa6cc8d454b442e42d96 2950
gir1.2-gudev-1.0_167-3_i386.deb
6b3b2d4b7f4ce725796e18ee506d243d4bc162ec9a6dbd80a85f43dc5482d896 44254
libgudev-1.0-dev_167-3_i386.deb
Files:
7009d3966034d02c2b6b0d5967c048c1 1441 admin important udev_167-3.dsc
7a960ca8648de8eb236b998b49203e8d 87001 admin important udev_167-3.diff.gz
6588099ba0bd3990ef4b4d8295a10fd9 520342 admin important udev_167-3_i386.deb
66df2678fe89da5b5735caa628580321 119146 libs important libudev0_167-3_i386.deb
5abb3e80a04b081fd9c6babc2e68ce85 56546 libdevel optional
libudev-dev_167-3_i386.deb
d9e64405388bfebe86c3e4c626bce770 183896 debian-installer important
udev-udeb_167-3_i386.udeb
b6da95053a2efc923dff744e6a66d284 38562 debian-installer optional
udev-gtk-udeb_167-3_i386.udeb
6c343c4c73382ddbd3a31b766336f880 104278 libs optional
libgudev-1.0-0_167-3_i386.deb
14db3b0fc21528383d4c89aa5b30cda8 2950 libs optional
gir1.2-gudev-1.0_167-3_i386.deb
1f230b4da73380dc91345076d41f012d 44254 libdevel optional
libgudev-1.0-dev_167-3_i386.deb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk2uCrgACgkQFGfw2OHuP7GDTgCgkRPwvAr5RLqkOhly9ZSOpBI8
8N4An2ejG/r07NAk2cUyMhcIpBZ+Flcw
=1pPd
-----END PGP SIGNATURE-----
--- End Message ---