Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2007-10-05 20:09:53 -0500
committerDan McGee <dpmcgee@gmail.com>2007-10-09 20:59:26 -0500
commitc2c8c2a77a4feb7fd948933cc11cffb0595acf71 (patch)
treed82403b2404ce2638c4ca4b56c438535020ed2af /hooks/archiso
parent93c40cb3865c279645580712f3767b6be9b8637f (diff)
Revert "Do not copy sqfs image to RAM"
This reverts commit 42d794561c1f3809f95299e4aa04cd3f28d4239b. My bad. Bad logic on removing, it was an option anyway.
Diffstat (limited to 'hooks/archiso')
-rw-r--r--hooks/archiso6
1 files changed, 5 insertions, 1 deletions
diff --git a/hooks/archiso b/hooks/archiso
index 4d25017..3d9e7ec 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -14,7 +14,11 @@ run_hook ()
exit 1
fi
- squashimg="${BOOT_MOUNT}/archlive.sqfs"
+ squashimg="${BOOT_MOUNT}/archiso.sqfs"
+ if [ "${copytoram}" = "y" ]; then
+ /bin/cat ${squashimg} > /tmpfs/archiso.sqfs
+ squashimg="/tmpfs/archiso.sqfs"
+ fi
msg ":: Mounting squashfs image"
/bin/modprobe -q squashfs >/dev/null 2>&1