summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-02-14 18:38:42 +0100
committerAndreas Baumann <abaumann@yahoo.com>2013-02-14 18:38:42 +0100
commit6e23f9e2ad5c6ac58f4e411c00e55c54890dfc69 (patch)
tree536400434f8fdf8d3a3c1b6ee5cb6177a378cca2
parent3c49d1cb93f72e1ab05d65085349894ae2dbab76 (diff)
downloadarchauto-6e23f9e2ad5c6ac58f4e411c00e55c54890dfc69.tar.gz
archauto-6e23f9e2ad5c6ac58f4e411c00e55c54890dfc69.tar.bz2
first ArchIso image and PXE infrastructure
-rw-r--r--README35
-rw-r--r--tftproot/README1
-rw-r--r--tftproot/pxelinux.cfg/01-52-54-00-12-34-5620
3 files changed, 56 insertions, 0 deletions
diff --git a/README b/README
index e69de29..5384f67 100644
--- a/README
+++ b/README
@@ -0,0 +1,35 @@
+# packages required:
+pacman -S archiso qemu syslinux
+
+# we build a live arch distribution, customized to contain the
+# CFEngine packages from AUR and some scripts doing an automatic
+# basic install
+export http_proxy=http://192.168.1.12:3128
+mkdir archlive
+cp -r /usr/share/archiso/configs/releng/* archlive/.
+cd archlive
+
+# always had problem with keys, switch of signing (not good, I know)
+sed 's/SigLevel = PackageRequired/SigLevel = Never/g' pacman.conf
+
+./build.sh -v build single
+mkdir -p /mnt/archiso
+mount -o loop,ro out/archlinux-2013.02.14-x86_64.iso /mnt/archiso
+
+mkdir tftproot
+cp /usr/lib/syslinux/pxelinux.0 tftproot
+mkdir -p tftproot/boot/x86_64
+
+qemu-img create arch.img 4G
+
+qemu-system-x86_64 -hda arch.img -net nic \
+ -net user,tftp=$PWD/tftproot,bootfile=pxelinux.0 \
+ -m 256 -nographic \
+ -machine accel=kvm -redir tcp:222::22
+
+# Links:
+# https://wiki.archlinux.org/index.php/Archiso
+# https://wiki.archlinux.org/index.php/PXE
+# https://wiki.archlinux.org/index.php/Archiso_as_pxe_server
+# https://kroweer.wordpress.com/2011/09/07/creating-a-custom-arch-linux-live-usb/
+
diff --git a/tftproot/README b/tftproot/README
new file mode 100644
index 0000000..07975ed
--- /dev/null
+++ b/tftproot/README
@@ -0,0 +1 @@
+The root of the TFPT server (embedded or real/standalone)
diff --git a/tftproot/pxelinux.cfg/01-52-54-00-12-34-56 b/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
new file mode 100644
index 0000000..64b2ea0
--- /dev/null
+++ b/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
@@ -0,0 +1,20 @@
+SAY Cfengine automatic installation..
+TIMEOUT 10
+
+DEFAULT arch64_http_cfengine
+
+#DEFAULT menu.c32
+#SERIAL 0 9600 0x303
+#TIMEOUT 20
+#PROMPT 1
+
+LABEL arch64_http_cfengine
+TEXT HELP
+Boot the Arch Linux (x86_64) CFEngine installation medium (Using HTTP). It allows you
+to bootstrap an Arch Linux via CFEngine.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64) (HTTP)
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/
+IPAPPEND 3