templates/archlinux-i386-netboot/aif.cfg in veewee-0.2.3 vs templates/archlinux-i386-netboot/aif.cfg in veewee-0.3.0.alpha1

- old
+ new

@@ -1,28 +1,34 @@ # Archlinux AIF config file # created by Dave Simons -# 21/09/2011 +# 11/07/2011 # install source SOURCE=net -if [ -d /repo/core ]; then - TARGET_REPOSITORIES=(core 'file:///repo/$repo/$arch') -else - MIRROR='http://archlinux.mirror.kangaroot.net/$repo/os/$arch' - TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST community $var_MIRRORLIST) -fi +# use http mirrors only, ftp will time out +SYNC_URL=http://mirrors.kernel.org/archlinux/core/os/i686 # time/date HARDWARECLOCK=localtime TIMEZONE=Europe/Brussels # packages to install TARGET_GROUPS=base -TARGET_PACKAGES='sudo openssh vim libyaml ruby linux-headers make gcc glibc git perl net-tools' +TARGET_PACKAGES='sudo openssh vim ruby kernel26-headers make gcc glibc git perl net-tools' TARGET_PACKAGES_EXCLUDE='nano emacs wpa_supplicant xfsprogs reiserfsprogs pcmciautils mdadm jfsutils cryptsetup lvm2' # hard drive setup 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' + +worker_install_bootloader () +{ + cat << EOF > /mnt/boot/grub/device.map +(hd0) /dev/sda +EOF + grub-install $var_GRUB_DEVICE --root-directory=/mnt || return 1 + bootdev=$(mount|grep $var_TARGET_DIR/boot|cut -d' ' -f1) + generate_grub_menulst || return 1 +}