Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2009-11-30 20:11:12 -0300
committerAaron Griffin <aaronmgriffin@gmail.com>2009-12-01 13:16:54 -0800
commit206c3b114ea4e350c20acc5a176e76b4eaddfbe2 (patch)
treee9543ea32d28d67f68d475552a1047b64b66b660
parentba3290b5bd3b2c303617652091d37925544ca67f (diff)
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 <vmlinuz386@yahoo.com.ar>
-rw-r--r--archiso/hooks/archiso4
1 files changed, 4 insertions, 0 deletions
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"