summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-02-18 18:47:22 +0100
committerAndreas Baumann <abaumann@yahoo.com>2013-02-18 18:47:22 +0100
commit07e7df1393d4331c6d62f0106294798911349564 (patch)
treea56df2b0e36e3d52034debb39e37865fd232cafc
parentd17ba13e8580b66aeaa4dd02b759ee6b6ac59801 (diff)
downloadarchauto-07e7df1393d4331c6d62f0106294798911349564.tar.gz
archauto-07e7df1393d4331c6d62f0106294798911349564.tar.bz2
first working version
-rwxr-xr-xarchauto.sh6
-rw-r--r--tftproot/pxelinux.cfg/01-52-54-00-12-34-562
2 files changed, 6 insertions, 2 deletions
diff --git a/archauto.sh b/archauto.sh
index 40ad7f7..cd87e91 100755
--- a/archauto.sh
+++ b/archauto.sh
@@ -44,7 +44,7 @@ arch-chroot /mnt grub-install --target=i386-pc --recheck ${INSTALL_DRIVE}
cp /mnt/usr/share/locale/en@quot/LC_MESSAGES/grub.mo /mnt/boot/grub/locale/en.mo
sed 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=cirrus"/g' /mnt/etc/default/grub
sed 's/GRUB_GFXMODE=auto/GRUB_GFXMODE=text/g' /mnt/etc/default/grub
-sed 's/#GRUB_TERMINAL_OUTPUT=console/GRUB_TERMINAL_OUTPUT=console' /mnt/etc/default/grub
+sed 's/#GRUB_TERMINAL_OUTPUT=console/GRUB_TERMINAL_OUTPUT=console/g' /mnt/etc/default/grub
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
@@ -58,3 +58,7 @@ echo "archiso" > /mnt/etc/hostname
arch-chroot /mnt sh -c "echo 'root:xx' | chpasswd"
arch-chroot /mnt systemctl enable dhcpcd@enp0s3.service
+
+echo "Done."
+
+systemctl poweroff
diff --git a/tftproot/pxelinux.cfg/01-52-54-00-12-34-56 b/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
index 510c906..9401dd8 100644
--- a/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
+++ b/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
@@ -13,5 +13,5 @@ ENDTEXT
MENU LABEL Boot Arch Linux (x86_64) (HTTP)
LINUX boot/x86_64/vmlinuz
INITRD boot/x86_64/archiso.img
-APPEND archisobasedir=archiso/arch archiso_http_srv=http://10.0.2.2:8080/ ip=dhcp modprobe.blacklist=cirrus
+APPEND archisobasedir=archiso/arch archiso_http_srv=http://10.0.2.2:8080/ ip=dhcp modprobe.blacklist=cirrus script=http://10.0.2.2:8080/archauto.sh
IPAPPEND 3