index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2006-09-28 02:15:25 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-09-28 02:15:25 +0000 |
commit | 139ed595fe5083ef686cbf712d1694df0a21698a (patch) | |
tree | 963cb46cfb3baf2a38c9a2860af536c183c1c4dd | |
parent | 2cd2b97d60472acf68349c7fe43834ac46c7c6b0 (diff) |
-rw-r--r-- | archlive_hook | 15 |
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 |