Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-08-08 09:13:01 +0200
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2014-08-08 13:37:30 -0300
commit314a74f4c6c50b2f1c26a35fffed7738d3245da5 (patch)
tree6d7a0ab66670236f7d33756b36c178fe95594112 /hooks
parentcff5402061c0a012a997898286e811ea187a9d0c (diff)
Reintroduce the possibility to force an architecture
Among other things, 0bb94de ([archiso] Drop aitab support, 2014-06-28) removed the possibility to manually set a specific architecture by using kernel parameters. This, however, is useful, e.g. when installing Arch Linux on a device that reports itself as i586 but works fine with the i686 flavor. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'hooks')
-rw-r--r--hooks/archiso2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/archiso b/hooks/archiso
index 26bdedc..4c50566 100644
--- a/hooks/archiso
+++ b/hooks/archiso
@@ -101,7 +101,7 @@ _verify_checksum() {
}
run_hook() {
- arch="$(uname -m)"
+ [[ -z "${arch}" ]] && arch="$(uname -m)"
[[ -z "${cowspace_size}" ]] && cowspace_size="75%"
[[ -z "${copytoram_size}" ]] && copytoram_size="75%"
[[ -z "${archisobasedir}" ]] && archisobasedir="arch"