Difference between revisions of "User:Chrisl/Installing Arch Using Old Installation Media"

From ArchWiki
Jump to: navigation, search
m (Improved the style, using templates, etc.)
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{{Article summary wiki|Installation Guide}}: You should still follow the official guide steps.
 
{{Article summary wiki|Installation Guide}}: You should still follow the official guide steps.
 
{{Article summary end}}
 
{{Article summary end}}
 +
{{Note|This guide is only for installation media version 2011.08.19 and older. For more recent versions, just follow the regular [[Installation Guide]]}}
 
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.
 
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 [[pacman|pacman4]] and the [[systemd]] adoption, that may do difficult the installation using an old media iso.
+
That is still true, but several changes have occurred in arch, including [[pacman|pacman4]] and the [[systemd]] adoption, that may do difficult the installation using the media iso 2011.08.19 and older.
  
 
The goal of this article 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 [https://github.com/falconindy/arch-install-scripts Arch Install Scripts] instead of AIF.
 
The goal of this article 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 [https://github.com/falconindy/arch-install-scripts Arch Install Scripts] instead of AIF.
Line 17: Line 18:
 
* Maybe an old media cd is the only media you have at hand to install arch at any given moment.
 
* Maybe an old media cd is the only media you have at hand to install arch at any given moment.
  
Again, this are only aditional steps. You should still follow the [[Installation Guide]].
+
Again, this are only additional steps. You should still follow the [[Installation Guide]].
  
 
This steps have been tested using 2010.05 and 2011.08.19 installation media cds.
 
This steps have been tested using 2010.05 and 2011.08.19 installation media cds.
Line 26: Line 27:
 
* Install {{Pkg|arch-install-scripts}} from the [[Official Repositories|official repositories]], making sure you update the database; do it like this:
 
* Install {{Pkg|arch-install-scripts}} from the [[Official Repositories|official repositories]], making sure you update the database; do it like this:
  
pacman -Sy arch-install-scripts
+
{{bc|# pacman -Sy arch-install-scripts}}
  
Say '''no''' to the question about updating pacman.
+
{{Note|Say '''no''' to the question about updating pacman.}}
  
 
* If you are using a media '''older''' than 2011.08.19, edit both {{ic|/usr/bin/pacstrap}} and {{ic|/usr/bin/arch-chroot}}. Look for a line like this:
 
* If you are using a media '''older''' than 2011.08.19, edit both {{ic|/usr/bin/pacstrap}} and {{ic|/usr/bin/arch-chroot}}. Look for a line like this:
  
mount -t devtmpfs udev "$1/dev" -o mode=0755,nosuid &&
+
{{bc|1=mount -t devtmpfs udev "$1/dev" -o mode=0755,nosuid &&}}
  
 
And change it to this:
 
And change it to this:
  
mount /dev "$1/dev" -o bind,mode=0755,nosuid &&
+
{{bc|1=mount /dev "$1/dev" -o bind,mode=0755,nosuid &&}}
  
 
on both files.
 
on both files.
Line 45: Line 46:
 
* Continue the steps, and after you have done {{ic|pacstrap /mnt base base-devel}}, do:  
 
* Continue the steps, and after you have done {{ic|pacstrap /mnt base base-devel}}, do:  
  
# pacstrap /mnt haveged
+
{{bc|# pacstrap /mnt haveged}}
  
 
==Edit the fstab file==
 
==Edit the fstab file==
Line 54: Line 55:
 
Once you are inside the {{ic|arch-choot /mnt}}:
 
Once you are inside the {{ic|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:
+
* 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  
+
{{bc|# pacman-db-upgrade}}
  
 
That is '''not''' necessary for 2011.08.19 media.
 
That is '''not''' necessary for 2011.08.19 media.
  
 
* This steps will fix the arch signatures keyring:
 
* This steps will fix the arch signatures keyring:
 
+
{{bc|
# /usr/sbin/haveged -w 1024 -v 1
+
# /usr/sbin/haveged -w 1024 -v 1
# pacman-key --init
+
# pacman-key --init
# pacman -U /var/cache/pacman/pkg/archlinux-keyring*
+
# pacman -U /var/cache/pacman/pkg/archlinux-keyring*
 +
}}
  
 
* Do the rest of the steps normally.
 
* Do the rest of the steps normally.

Revision as of 04:59, 20 January 2013

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki: You should still follow the official guide steps. Template:Article summary end

Note: This guide is only for installation media version 2011.08.19 and older. For more recent versions, just follow the regular Installation Guide

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 occurred in arch, including pacman4 and the systemd adoption, that may do difficult the installation using the media iso 2011.08.19 and older.

The goal of this article 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.

Again, this are only additional 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
Note: 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 the fstab file

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

You can use the content of /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.