index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-05 10:10:45 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-12-18 22:09:17 -0600 |
commit | 3a1fc5911c3f760ac92d49440f96a04470e457f6 (patch) | |
tree | 5aab6402849f43e6111c71def7ebb0bf6ea6ddf4 /archiso | |
parent | d51b780fe4e6a3aad9cdb86534ed41f984d23f16 (diff) |
-rw-r--r-- | archiso/hooks/archiso | 8 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index e6ccfd4..60e14bf 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -27,6 +27,10 @@ _mnt_squashfs() run_hook () { + if [ "x${arch}" = "x" ]; then + arch="$(uname -m)" + fi + if [ "x${ramdisk_size}" = "x" ]; then ramdisk_size="75%" fi @@ -100,10 +104,12 @@ run_hook () export LOOP_NUM="0" if [ -e "/mounts" ]; then msg ":: Mounting images" - while read img mountpoint type; do + while read img imgarch mountpoint type; do # check if this line is a comment (starts with #) [ "${img#"#"}" != "${img}" ] && continue + [ "$imgarch" != "$arch" ] && continue + if [ "${type}" = "bind" ]; then _mnt_bind ${img} ${mountpoint} elif [ "${type}" = "squashfs" ]; then |