Commit 046fd6b0 authored by Michael Biebl's avatar Michael Biebl
Browse files

Don't rely on /dev/stdout when creating static device nodes under sysvinit

"kmod static-nodes" will write its output to /dev/stdout by default.
That device node is created by udevd as a symlink to /proc/self/fd/1.
Since we run make_static_nodes() in the udev SysV init script before
udevd is started, this device node is not guaranteed to exist and kmod
fails to deal with that properly.
As a workaround, use "kmod static-nodes --output=/proc/self/fd/1".

Closes: #757830
parent 3b0fe50e
systemd (208-8) UNRELEASED; urgency=medium
[ Martin Pitt ]
* Fix duplicate line in copyright. (Closes: #756899)
* Drop --disable-xattr configure option for udeb, does not exist any more.
* Add Turkish debconf translations. Thanks Mert Dirik! (Closes: #757498)
* Backport fix for lazy session-activation on non-seat0 seats.
(LP: #1355331)
[ Michael Biebl ]
* Use "kmod static-nodes --output=/proc/self/fd/1" in make_static_nodes() as
we can't rely on /dev/stdout to exist at this point during boot.
(Closes: #757830)
-- Martin Pitt <mpitt@debian.org> Thu, 07 Aug 2014 08:31:38 +0200
systemd (208-7) unstable; urgency=medium
......
......@@ -91,7 +91,7 @@ make_static_nodes() {
[ -e /lib/modules/$(uname -r)/modules.devname ] || return 0
[ -x /bin/kmod ] || return 0
/bin/kmod static-nodes --format=tmpfiles | \
/bin/kmod static-nodes --format=tmpfiles --output=/proc/self/fd/1 | \
while read type name mode uid gid age arg; do
[ -e $name ] && continue
case "$type" in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment