From 206c3b114ea4e350c20acc5a176e76b4eaddfbe2 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 30 Nov 2009 20:11:12 -0300 Subject: Add an error message when mounting aufs fails, then exit 1 Closes FS#13381. Waiting 30 seconds for device /dev/archiso ... SUCCESS: Mounted archiso volume successfully. squashfs: version 4.0 (2009/01/31) Phillip Lougher aufs 2-standalone.tree-20090907 :: Mounting root (aufs) filesystem aufs au_xino_do_write:371:mount[407]: I/O Error, write failed (4294967268) aufs au_xino_set:1115:mount[407]: I/O Error, failed creating xino(-5). mount: Invalid argument ERROR: while mounting root (aufs) filesystem. Kernel panic - not syncing: Attempted to kill init! Signed-off-by: Gerardo Exequiel Pozzi --- archiso/hooks/archiso | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archiso') diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index 336a014..bed8f7a 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -103,6 +103,10 @@ run_hook () msg ":: Mounting root (aufs) filesystem" /bin/mount -t aufs -o dirs=/tmpfs=rw none /real_root + if [ $? -ne 0 ]; then + echo "ERROR: while mounting root (aufs) filesystem." + exit 1 + fi export LOOP_NUM="0" msg ":: Mounting images" -- cgit v1.2.3-70-g09d2