index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-08-26 20:12:17 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-08-26 20:12:22 -0300 |
commit | 334239280062b114bdc4feddade177f70ed7bb03 (patch) | |
tree | 4bcd2319739c948c5f8eaef4312528c25c7e2aa2 /archiso/hooks | |
parent | e08ab66d2248f91ca3eea25ea3e896f1fc8437b1 (diff) |
-rw-r--r-- | archiso/hooks/archiso | 3 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index c973ffc..2b55a00 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -1,7 +1,6 @@ # Initialize loopback device logic (we using on-demand mode) # args: none _init_loop_dev() { - modprobe loop loop_dev_count=99 loop_dev_range=$(cat /sys/block/loop0/range) loop_dev_minor=$((loop_dev_count*loop_dev_range)) @@ -88,6 +87,8 @@ _verify_checksum() { run_hook() { + modprobe loop + [[ -z "${arch}" ]] && arch="$(uname -m)" [[ -z "${cowspace_size}" ]] && cowspace_size="75%" [[ -z "${copytoram_size}" ]] && copytoram_size="75%" |