summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-06-14 12:06:13 +0200
committerMichael Prokop <mika@debian.org>2010-06-14 12:06:13 +0200
commit04b86198ef7d32d3f4ae700fcf34a2539876f0a7 (patch)
tree005a697d9d6cd87152ccbbc7bb4f5c7629d5d6ef /init
parent2a8c9907b1095015e1d669d3cd895657936f6247 (diff)
init: display warning message if devtmpfs could not be mounted.
Older kernel versions (like the one shipped with Lenny) don't support devtmpfs. Therefore display a warning message when falling back to tmpfs. See #501359. Thanks: Ferenc Wagner <wferi@niif.hu> Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'init')
-rwxr-xr-xinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/init b/init
index 142eb14..c838049 100755
--- a/init
+++ b/init
@@ -18,6 +18,7 @@ if [ -e /etc/udev/udev.conf ]; then
. /etc/udev/udev.conf
fi
if ! mount -t devtmpfs -o mode=0755 none /dev; then
+ echo "W: devtmpfs not available, falling back to tmpfs for /dev"
mount -t tmpfs -o size=$tmpfs_size,mode=0755 udev /dev
[ -e /dev/console ] || mknod -m 0600 /dev/console c 5 1
[ -e /dev/null ] || mknod /dev/null c 1 3