Arch Install Scripts

Aus wiki.archlinux.de
Version vom 16. Juli 2012, 14:49 Uhr von Pierre (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „# partition disks #:* use fdisk, parted, cfdisk, etc #:* create any stacked block devices like LVM, LUKS, or RAID # for…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
  1. partition disks
    • use fdisk, parted, cfdisk, etc
    • create any stacked block devices like LVM, LUKS, or RAID
  2. format partitions
    • mkfs for filesystem of your choosing
  3. mount the partitions
    • mount the root partition on /mnt
    • create dirs for and mount any other partitions (such as /mnt/boot)
  4. connect to the internet
    • Assuming a wired connection, running dhcpcd is sufficient to get a lease
  5. install the base system
    • pacstrap /mnt base{,-devel} [more packages...]
  6. install and configure a bootloader
  7. configure system
    • generate an fstab: genfstab -p /mnt >> /mnt/etc/fstab
    • arch-chroot /mnt
      • write hostname to /etc/hostname
      • symlink /etc/localtime to /usr/share/zoneinfo/Zone/SubZone
      • add locale preferences to /etc/locale.conf
      • uncomment locales from /etc/locale.gen, generate them with "locale-gen"
      • configure /etc/mkinitcpio.conf as needed, see mkinitcpio
      • mkinitcpio -p linux
  8. unmount the things you mounted in step 3
  9. reboot!