From 2deeaba70b67b54f7bff26d74df35a6730ca047f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 7 Feb 2011 19:49:36 +0100 Subject: [PATCH] Add error message output --- defaults/initrd.scripts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 6bfdc05..d630869 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -315,12 +315,13 @@ runmdev() { fi # Options copied from /etc/init.d/udev-mount, should probably be kept in sync - mount -t $devfs -o "exec,nosuid,mode=0755,size=10M" udev /dev + mount -t $devfs -o "exec,nosuid,mode=0755,size=10M" udev /dev \ + || bad_msg "Failed to mount /dev as ${devfs}" # http://git.busybox.net/busybox/plain/docs/mdev.txt mkdir /dev/pts - mount -t devpts devpts /dev/pts - mdev -s + mount -t devpts devpts /dev/pts || bad_msg "Failed to mount /dev/pts" + mdev -s || bad_msg "Failed recive dynamic updates from mdev" } test_success() { -- 2.26.2