Created
December 13, 2010 14:26
-
-
Save fredrikhenne/739033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SOURCE=net | |
SYNC_URL='ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64' | |
HARDWARECLOCK=UTC # UTC is the future, USE IT NOW or else....! | |
TIMEZONE=Europe/Stockholm | |
TARGET_GROUPS='base' | |
TARGET_PACKAGES_EXCLUDE= | |
TARGET_PACKAGES='e2fsprogs' | |
HOST_NAME="archmachine" | |
worker_intro () { | |
echo "Automatiskt installation kommer att ske på /dev/sda. | |
Enheten kommer att formateras samt skrivas över." | |
echo "Är du säker på att du vill fortsätta? (Om inte - använd CTRL + C)" | |
} | |
worker_fix_repos() { | |
echo "Server = $SYNC_URL" > /etc/pacman.d/tmp_mirrorlist | |
cat /etc/pacman.d/mirrorlist >> /etc/pacman.d/tmp_mirrorlist | |
mv /etc/pacman.d/tmp_mirrorlist /etc/pacman.d/mirrorlist | |
} | |
worker_configure_system () { | |
prefill_configs | |
echo "configuring rc.conf" | |
sed -i "s/^HOSTNAME=.*/HOSTNAME=\"$HOST_NAME\"/" $var_TARGET_DIR/etc/rc.conf | |
echo "configuring hosts.*" | |
sed -i "s/localhost$/localhost $HOST_NAME/g" $var_TARGET_DIR/etc/hosts | |
echo "Setting root password" | |
chroot $var_TARGET_DIR passwd | |
} | |
# These variables are mandatory | |
GRUB_DEVICE=/dev/sda | |
PARTITIONS='/dev/sda 100:ext2:+ 512:swap *:ext4' | |
BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params | |
/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params | |
/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment