Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/install/archiso_loop_mnt
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-11-30 22:16:19 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-12-07 23:48:24 -0300
commit90794d7cddf1289323b7d8956bcc5c061126a2f9 (patch)
tree84e16329236ab5003e20cb329b584753580a3cce /archiso/install/archiso_loop_mnt
parent8921c59169b337c19502cc4cf64013ca40b9505c (diff)
[archiso] Add support to mount iso in loopback mode.
Add two parameters: img_dev=/dev/sdNM where /dev/sdNM is the device where .iso is located. img_loop=/path/to/arch.iso where /path/to/arch.iso is the full path of the .iso in the device img_dev. Original idea from Baurzhan Muftakhidinov. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/install/archiso_loop_mnt')
-rw-r--r--archiso/install/archiso_loop_mnt18
1 files changed, 18 insertions, 0 deletions
diff --git a/archiso/install/archiso_loop_mnt b/archiso/install/archiso_loop_mnt
new file mode 100644
index 0000000..c0d21a6
--- /dev/null
+++ b/archiso/install/archiso_loop_mnt
@@ -0,0 +1,18 @@
+# vim: set ft=sh:
+
+install ()
+{
+ MODULES=""
+
+ BINARIES=""
+ FILES=""
+ add_dir /img_dev
+ SCRIPT="archiso_loop_mnt"
+}
+
+help ()
+{
+cat<<HELPEOF
+ This hook loads the necessary modules for boot via loop device.
+HELPEOF
+}