From 9154b028813e61e7effef005a19e916dbdd642f9 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 9 Jul 2010 15:36:51 -0300 Subject: First mount ${archisodevice} before other mounts Signed-off-by: Gerardo Exequiel Pozzi --- archiso/hooks/archiso | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'archiso') diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index c7a6829..23ae4e2 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -75,16 +75,6 @@ run_hook () { archiso_mount_handler() { newroot="${1}" - msg -n ":: Mounting tmpfs, size=${tmpfs_size}..." - mount -t tmpfs -o "size=${tmpfs_size}",mode=0755 tmpfs /tmpfs - msg "done." - - if [ "${copytoram}" = "y" ]; then - msg -n ":: Mounting tmpfs (for squashfs), size=${tmpfs_sqfs_size}..." - mount -t tmpfs -o "size=${tmpfs_sqfs_size}",mode=0755 tmpfs /tmpfs.sqfs - msg "done." - fi - msg ":: Waiting for boot device..." while ! poll_device ${archisodevice} 30; do echo "ERROR: boot device didn't show up after 30 seconds..." @@ -118,6 +108,16 @@ archiso_mount_handler() { launch_interactive_shell fi + if [ "${copytoram}" = "y" ]; then + msg -n ":: Mounting tmpfs (for squashfs), size=${tmpfs_sqfs_size}..." + mount -t tmpfs -o "size=${tmpfs_sqfs_size}",mode=0755 tmpfs /tmpfs.sqfs + msg "done." + fi + + msg -n ":: Mounting tmpfs, size=${tmpfs_size}..." + mount -t tmpfs -o "size=${tmpfs_size}",mode=0755 tmpfs /tmpfs + msg "done." + msg ":: Mounting root (aufs) filesystem" /bin/mount -t aufs -o dirs=/tmpfs=rw none "${newroot}" if [ $? -ne 0 ]; then -- cgit v1.2.2