summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-02-14 21:59:32 +0100
committerAndreas Baumann <abaumann@yahoo.com>2013-02-14 21:59:32 +0100
commit3369c506d4d2fb98376aa63fce9145e3ef04030e (patch)
tree8aafe6e3f8eba58d16d07f07cc22e85d3def60d7
parent6e23f9e2ad5c6ac58f4e411c00e55c54890dfc69 (diff)
downloadarchauto-3369c506d4d2fb98376aa63fce9145e3ef04030e.tar.gz
archauto-3369c506d4d2fb98376aa63fce9145e3ef04030e.tar.bz2
first booting version
-rw-r--r--README12
-rw-r--r--tftproot/pxelinux.cfg/01-52-54-00-12-34-562
2 files changed, 11 insertions, 3 deletions
diff --git a/README b/README
index 5384f67..318fff4 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
# packages required:
-pacman -S archiso qemu syslinux
+pacman -S archiso qemu syslinux darkhttpd
# we build a live arch distribution, customized to contain the
# CFEngine packages from AUR and some scripts doing an automatic
@@ -15,6 +15,10 @@ 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
+darkhttpd /mnt/archiso/ --port 8080
+
+cp /mnt/archiso/arch/boot/x86_64/vmlinuz tftproot/boot/x86_64/
+cp /mnt/archiso/arch/boot/x86_64/archiso.img tftproot/boot/x86_64/
mkdir tftproot
cp /usr/lib/syslinux/pxelinux.0 tftproot
@@ -24,12 +28,16 @@ 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 \
+ -m 386 -nographic \
-machine accel=kvm -redir tcp:222::22
+passwd
+systemctl start sshd
+
# 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/
+# http://pxeknife.erebor.org/
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 64b2ea0..d827b41 100644
--- a/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
+++ b/tftproot/pxelinux.cfg/01-52-54-00-12-34-56
@@ -16,5 +16,5 @@ 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}/
+APPEND archisobasedir=arch archiso_http_srv=http://192.168.1.12:8080/ ip=dhcp
IPAPPEND 3