项目作者: pnedkov

项目描述 :
Arch Direct Installer - An Arch Linux install script
高级语言: Shell
项目地址: git://github.com/pnedkov/adi.git
创建时间: 2018-09-20T01:58:47Z
项目社区:https://github.com/pnedkov/adi

开源协议:

下载


Arch Direct Installer

ADI is a shell script for installing Arch Linux. It requires minimal initial configuration and can be completely unattended.

Disk layout

LVM

  1. +----------------+----------------------+----------------------+---------------------------------------+
  2. | | | | |
  3. | Boot | Logical volume 1 | Logical volume 2 | Logical volume 3 |
  4. | | (optional) | | (optional) |
  5. | | | | |
  6. | /dev/sda1 | /dev/$LVM_GROUP/swap | /dev/$LVM_GROUP/root | /dev/$LVM_GROUP/home |
  7. | | | | |
  8. | $BOOT_SIZE | $SWAP_SIZE | $ROOT_SIZE | |
  9. | | | | |
  10. | /boot | | / | /home |
  11. | | | | |
  12. | BIOS: $FS | | $FS | $FS |
  13. | | | | |
  14. | UEFI: FAT32 +----------------------+----------------------+---------------------------------------+
  15. | | |
  16. | | LUKS encrypted partition |
  17. | | (optional) |
  18. | | /dev/mapper/$LUKS_DEV_NAME |
  19. | | |
  20. +----------------+-------------------------------------------------------------------------------------+
  21. | | |
  22. | /dev/${DRIVE}1 | /dev/${DRIVE}2 |
  23. | | |
  24. +----------------+-------------------------------------------------------------------------------------+
  25. | |
  26. | /dev/$DRIVE : msdos (BIOS) or gpt (UEFI) |
  27. | |
  28. +------------------------------------------------------------------------------------------------------+

Standard partitions

  1. +----------------+--------------------+----------------------------+-----------------------------------+
  2. | | | | |
  3. | Boot | Swap | Root | Home |
  4. | (optional) | (optional) | | (optional) |
  5. | | | | |
  6. | $BOOT_SIZE | $SWAP_SIZE | $ROOT_SIZE | |
  7. | | | | |
  8. | /boot | | / | /home |
  9. | | | | |
  10. | BIOS: $FS | | $FS | $FS |
  11. | | | | |
  12. | UEFI: FAT32 | | | |
  13. | | | | |
  14. | | +----------------------------+ |
  15. | | | | |
  16. | | | LUKS encrypted partition | |
  17. | | | (optional) | |
  18. | | | /dev/mapper/$LUKS_DEV_NAME | |
  19. | | | | |
  20. +----------------+--------------------+----------------------------+-----------------------------------+
  21. | | | | |
  22. | /dev/${DRIVE}1 | /dev/${DRIVE}[1,2] | /dev/${DRIVE}[1,2,3] | /dev/${DRIVE}[2,3,4] |
  23. | | | | |
  24. +----------------+--------------------+----------------------------+-----------------------------------+
  25. | |
  26. | /dev/$DRIVE : msdos (BIOS) or gpt (UEFI) |
  27. | |
  28. +------------------------------------------------------------------------------------------------------+

Prerequisites:

  • Backup!
  • The disk where Arch Linux will be installed should not contain any partitions

Features

  • Completely unattended Arch Linux installation
  • Install on a legacy BIOS and UEFI systems
  • Install on LVM or standard partitions
  • Install on a mdadm software RAID device but you have to create it first
  • LUKS with LVM: Encrypt the second partition on top of which the LVM Physical Volume is created
  • LUKS with partitions: Encrypt the root but not the home partition
  • No storage device other than $DRIVE will be altered
  • Different disk layouts depending on the configuration
  • User defined size for boot, swap, root and home
  • User defined file system for boot, root and home: xfs/ext4/reiserfs
  • User defined lists of packages separated in different categories

Limitations

  • Cannot preserve any data on $DRIVE
  • Cannot install on a drive with existing partitions
  • Cannot perform sophisticated setup configuration with custom disk layout
  • Cannot encrypt the /home partition

Installation instructions

  1. Boot from the Arch Linux iso
  2. Configure Internet connection
  3. pacman -Sy --noconfirm git
  4. git clone https://github.com/pnedkov/adi.git
  5. cd adi/
  6. cp sample.adi.conf adi.conf
  7. vim adi.conf
  8. ./adi.sh