Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # by Mr Green
- # very much work in progress
- #
- # based on install.sh by Mario Aichinger
- #
- # wraparch v-0.01 base install
- # helper script based on arch-install-scripts
- # assumes you have created partitions and filesystems
- # and they are mounted.
- # system set up variables
- # Change values to suit....
- # Todo
- # test running as root
- # local.conf
- # locale
- install_dir="/mnt" # where paritions are mounted
- bootloader="syslinux" # bootloader
- packages="base" # add base_devel if required
- host_name="arch" # name of host!
- local_zone="Europe/London" # Time zone
- console_keymap="uk" # console keymap
- _root="password" # password for root
- function set_up_base()
- {
- pacstrap $install_dir "$packages" $bootloader
- genfstab -U -p $install_dir >> $install_dir/etc/fstab
- }
- function config_sys()
- {
- arch-chroot $install_dir << EOF
- echo $host_name >> /etc/hostname
- echo "KEYMAP=\"${console_keymap}\"" >> /etc/vconsole.conf
- ln -s /usr/share/zoneinfo/$local_zone /etc/localtime
- locale-gen
- mkinitcpio -p linux
- /usr/sbin/syslinux-install_update -iam
- passwd << EOPF
- $_root
- $_root
- EOPF
- EOF
- }
- # start install
- set_up_base
- config_sys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement