From 139ed595fe5083ef686cbf712d1694df0a21698a Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 28 Sep 2006 02:15:25 +0000 Subject: git-svn-id: http://phraktured.net/archiso@13 00a9fe69-e71b-0410-bb23-df0e5024db41 --- archlive_hook | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'archlive_hook') diff --git a/archlive_hook b/archlive_hook index 754c266..0b3ea1b 100644 --- a/archlive_hook +++ b/archlive_hook @@ -15,9 +15,8 @@ run_hook () squashimg="/tmpfs/bootcd/archlive.sqfs" /bin/modprobe -q isofs >/dev/null 2>&1 - PS1="ramfs$ " /bin/sh -i for cdrom in /dev/cd/*; do - if mount -r -t isofs "${cdrom}" /tmpfs/bootcd >/dev/null 2>&1; then + if mount -r -t iso9660 "${cdrom}" /tmpfs/bootcd >/dev/null 2>&1; then if [ -e "${squashimg}" ]; then squashfound=1 msg "${cdrom}" @@ -34,26 +33,24 @@ run_hook () exit 1 fi - if [ "${copytoram}" == "y" ]; then + if [ "${copytoram}" = "y" ]; then /bin/cat /tmpfs/bootcd/archlive.sqfs > /tmpfs/archlive.sqfs squashimg="/tmpfs/archlive.sqfs" fi - msg -n ":: Mounting squashfs image..." + msg ":: Mounting squashfs image" /bin/modprobe -q squashfs >/dev/null 2>&1 /bin/mkdir -p /tmpfs/squashfs_root - if ! /bin/losetup /dev/loop0 "${squashimg}"; then + if ! /bin/losetup /dev/loop0 "${squashimg}" >/dev/null 2>&1; then echo "ERROR: Cannot mount loop device /dev/loop0...aborting" exit 1 fi /bin/mount -r -t squashfs /dev/loop0 /tmpfs/squashfs_root - msg "done." - msg -n ":: Mounting root (union) filesystem..." + msg ":: Mounting root (union) filesystem" /bin/modprobe -q unionfs >/dev/null 2>&1 - /bin/mount -t unionfs -o dirs=/tmpfs=rw:/tmpfs/squashfs_root=ro,debug=0 none /real_root - msg "done." + /bin/mount -t unionfs -o dirs=/tmpfs=rw:/tmpfs/squashfs_root=ro none /real_root if [ -d /proc/sys/dev/cdrom ]; then echo 0 > /proc/sys/dev/cdrom/lock -- cgit v1.2.3-54-g00ecf