Skip to content

Commit

Permalink
Merge pull request jedi4ever#689 from anshumanb/arch-templates
Browse files Browse the repository at this point in the history
Arch Linux templates update
  • Loading branch information
jedi4ever committed May 9, 2013
2 parents 71979cf + f13c51d commit 4e5d50d
Show file tree
Hide file tree
Showing 28 changed files with 442 additions and 477 deletions.
28 changes: 0 additions & 28 deletions templates/archlinux-i386-netboot/aif.cfg

This file was deleted.

26 changes: 0 additions & 26 deletions templates/archlinux-i386-netboot/definition.rb

This file was deleted.

75 changes: 0 additions & 75 deletions templates/archlinux-i386-netboot/postinstall.sh

This file was deleted.

30 changes: 0 additions & 30 deletions templates/archlinux-i386-netboot/postinstall2.sh

This file was deleted.

28 changes: 0 additions & 28 deletions templates/archlinux-x86_64-netboot/aif.cfg

This file was deleted.

26 changes: 0 additions & 26 deletions templates/archlinux-x86_64-netboot/definition.rb

This file was deleted.

75 changes: 0 additions & 75 deletions templates/archlinux-x86_64-netboot/postinstall.sh

This file was deleted.

30 changes: 0 additions & 30 deletions templates/archlinux-x86_64-netboot/postinstall2.sh

This file was deleted.

51 changes: 51 additions & 0 deletions templates/archlinux-x86_64/README.md
@@ -0,0 +1,51 @@
# Arch Linux


## Tip

Since this is a "net" install and all packages are downloaded, you can
speed up the download of the base packages by getting [Pacman][] to use
a suitable [mirror][].

For example, I modified the definition to make Pacman use Australian and
New Zealand mirrors.

@@ -27,6 +27,7 @@
'passwd<Enter>',
"#{root_password}<Enter>",
"#{root_password}<Enter>",
+ "echo 'Server = http://mirror.xnet.co.nz/pub/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist<Enter>",
'systemctl start sshd.service<Enter><Wait>',
],
:ssh_login_timeout => '10000',
@@ -58,6 +59,6 @@
],
:postinstall_timeout => '10000',
:params => {
- #:PACMAN_REFLECTOR_ARGS => '--verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist',
+ :PACMAN_REFLECTOR_ARGS => '--verbose -c "New Zealand" -c Australia -n 5 --sort rate --save /etc/pacman.d/mirrorlist',
}
})

You can obtain a suitable mirrorlist for yourself using the [Pacman
Mirrorlist Generator][]. The list of countries with mirrors is on that
page too.

Once the base system is installed, the template uses [Reflector][] to
set up Pacman's mirrorlist for the remaining packages. By default, the
arguments passed to Reflector favour up-to-date mirrors sorted by their
download rate. As shown above, you may customize the arguments to your
liking.


## Note

* Reflector is uninstalled by the template following the mirrorlist
generation
* The template currently only supports VirtualBox provider


[Pacman]: https://wiki.archlinux.org/index.php/Pacman
[mirror]: https://wiki.archlinux.org/index.php/Mirrors
[Pacman Mirrorlist Generator]: https://www.archlinux.org/mirrorlist/
[Reflector]: https://wiki.archlinux.org/index.php/Reflector

0 comments on commit 4e5d50d

Please sign in to comment.