User:Chrisl/Installing Arch Using Old Installation Media

From ArchWiki
< User:Chrisl
Revision as of 14:43, 26 October 2012 by Chrisl (talk | contribs) (Edit /etc/fstab)
Jump to: navigation, search

In the past, it didn't really matter what version of the installation media was used to install arch, as long remote repos were used, the result was an updated arch installation.

That is still true, but several changes have ocurred in arch, including pacman4 and the systemd adoption, that may do harder the installation using old media iso.

The goal of this wiki is to provide few additional steps to the Installation Guide, in order to allow you to use an old installation media to install arch, using the new Arch Install Scripts instead of AIF.

This is useful in situations like this:

  • Some VPS providers only provide iso files of old media versions.
  • Installation on older computers. While the 2011.08.19 i686 iso was able to boot with only 64M RAM and install arch (activating swap), more recent versions can't.
  • Maybe an old media cd is the only media you have at hand to install arch at any given moment.

This are only aditional steps. You should still follow the Installation Guide.

This steps have been tested using 2010.05 and 2011.08.19 installation media cds.

Install the Arch Install Scripts

  • Follow the guide until you get internet access.
pacman -Sy arch-install-scripts

Say no to the question about updating pacman.

  • If you are using a media older than 2011.08.19, edit both /usr/bin/pacstrap and /usr/bin/arch-chroot. Look for a line like this:
mount -t devtmpfs udev "$1/dev" -o mode=0755,nosuid &&

And change it to this:

mount /dev "$1/dev" -o bind,mode=0755,nosuid &&

on both files.

Again, that is not necessary for 2011.08.19 media.

Install haveged

  • Continue the steps, and after you have done pacstrap /mnt base base-devel, do:
# pacstrap /mnt haveged

Edit /etc/fstab

  • Omit using genfstab. That script does not work on older media. You'll need to edit the /etc/fstab file by hand.

You can use the content of /mnt/etc/mtab as reference.

Fixing Pacman

Once you are inside the arch-choot /mnt:

  • If you are using an installation media older than 2011.08.19, you'll need to update pacman's database. Do it like this:
# pacman-db-upgrade 

That is not necessary for 2011.08.19 media.

  • This steps will fix the arch signatures keyring:
# /usr/sbin/haveged -w 1024 -v 1
# pacman-key --init
# pacman -U /var/cache/pacman/pkg/archlinux-keyring*
  • Do the rest of the steps normally.