index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Thomas Bächler <thomas@archlinux.org> | 2010-06-04 22:37:51 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-06-04 22:37:51 +0200 |
commit | b320a1b29020cb772c7f0ca0321d3ed6f2e865dc (patch) | |
tree | 66e0be09445e1a8e3452741a1d6a3d005401b0c7 /archiso/hooks | |
parent | 84b785f386bf43ffd97118c9f9cc9d12cb4711bf (diff) |
-rw-r--r-- | archiso/hooks/archiso | 12 |
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso index e1ad81a..d979ef4 100644 --- a/archiso/hooks/archiso +++ b/archiso/hooks/archiso @@ -54,10 +54,14 @@ run_hook () { tmpfs_sqfs_size="75%" fi + if [ "x${archisobasedir}" != "x" ]; then + archisobasedir="" + fi + if [ "x${isomounts}" != "x" ]; then isomounts="/bootmnt/${isomounts}" else - isomounts="/bootmnt/isomounts" + isomounts="/bootmnt/${archisobasedir}/isomounts" fi if [ "x${archisodevice}" = "x" ]; then @@ -128,12 +132,12 @@ archiso_mount_handler() { [ "$imgarch" != "$arch" ] && continue - [ ! -r "/bootmnt/${img}" ] && continue + [ ! -r "/bootmnt/${archisobasedir}/${img}" ] && continue if [ "${type}" = "bind" ]; then - _mnt_bind "/bootmnt/${img}" "${newroot}${mountpoint}" + _mnt_bind "/bootmnt/${archisobasedir}/${img}" "${newroot}${mountpoint}" elif [ "${type}" = "squashfs" ]; then - _mnt_squashfs "/bootmnt/${img}" "${newroot}${mountpoint}" + _mnt_squashfs "/bootmnt/${archisobasedir}/${img}" "${newroot}${mountpoint}" fi done < "${isomounts}" |