summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2013-05-16 11:10:47 +0200
committerAndreas Baumann <abaumann@yahoo.com>2013-05-16 11:10:47 +0200
commit81c34184ce6ecafbb38fcf963538c1f6d2894165 (patch)
tree7ca53d21018a9978c3b9d9bc67b555d828ea5899
parent7d0ec49d01db9669d975401c3da2572a73cdeb7d (diff)
downloadarchauto-81c34184ce6ecafbb38fcf963538c1f6d2894165.tar.gz
archauto-81c34184ce6ecafbb38fcf963538c1f6d2894165.tar.bz2
full reinstall and test, adapted README
-rw-r--r--README104
-rw-r--r--tftproot/README2
2 files changed, 71 insertions, 35 deletions
diff --git a/README b/README
index 2fcc7a7..9b9cdad 100644
--- a/README
+++ b/README
@@ -1,29 +1,59 @@
-# packages required:
+Requirements
+------------
+
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
-# basic install
+ArchISO
+-------
+
+We build a live Arch boot CD.
+
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 -i 's/SigLevel = PackageRequired/SigLevel = Never/g' pacman.conf
+
+sed -i 's/^SigLevel.*/SigLevel = Never/g' pacman.conf
+
+# build the live CDs, this take quite a while
./build.sh -v build single
-mkdir -p /mnt/archiso
-mount -o loop,ro archlive/out/archlinux-2013.02.14-dual.iso /mnt/archiso
-ln -s /mnt/archiso .
-darkhttpd . --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/
+cd ..
+
+We mount it and make it accessible over a webserver:
+
+mkdir archiso
+mount -o loop,ro archlive/out/archlinux-2013.05.16-dual.iso archiso
+darkhttpd . --port 8080 &
+
+TFTP root
+--------
+
+Copy PXE bootstrap files to a TFTP root:
-mkdir tftproot
-cp /usr/lib/syslinux/pxelinux.0 tftproot
mkdir -p tftproot/boot/x86_64
+cp archiso/arch/boot/x86_64/vmlinuz tftproot/boot/x86_64/
+cp archiso/arch/boot/x86_64/archiso.img tftproot/boot/x86_64/
+
+cp /usr/lib/syslinux/pxelinux.0 tftproot
+
+Custom software from AUR
+------------------------
+
+Build the following packages from AUR:
+
+qdbm-1.8.78-1-x86_64.pkg.tar.xz
+cfengine-3.4.4-2-x86_64.pkg.tar.xz
+
+Install Archlinux
+-----------------
+
+Create a Qemu image with Archlinux (automatically). The main
+work is done by the 'archauto.sh' script which is given to
+the archiso kernel as script to execute after auto-login:
qemu-img create arch.img 4G
@@ -61,31 +91,37 @@ systemctl start sshd
# - size, swap, filesystem, chunking
# - file system layout
+# via cfengine
+
+# packages net-tools gdisk
+# pacman -S libedit ntp
+# ntpdate 0.pool.ntp.org, systemctl enable ntpd
+
+Running the system
+------------------
+
qemu-system-x86_64 -hda arch.img -net nic \
-net user \
-m 386 -display curses \
-machine accel=kvm -redir tcp:222::22
-# via cfengine
-# packages net-tools gdisk
-# pacman -S libedit ntp
-# ntpdate 0.pool.ntp.org, systemctl enable ntpd
+Links
+-----
-# 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/
-# https://github.com/altercation/archblocks
-# https://bbs.archlinux.org/viewtopic.php?id=149597
-# https://github.com/jdodds/aif
-# https://wiki.archlinux.org/index.php/Autostarting
-# https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
-# https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide
-# https://bbs.archlinux.org/viewtopic.php?id=148790 (text mode boot from archiso)
-# http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_run_OVMF (UEFI BIOS)
-# https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
-# https://wiki.archlinux.org/index.php/GRUB2
-# http://www.brianparsons.net/Best-Practices-For-Using-Arch-Linux-on-Servers/
+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/
+https://github.com/altercation/archblocks
+https://bbs.archlinux.org/viewtopic.php?id=149597
+https://github.com/jdodds/aif
+https://wiki.archlinux.org/index.php/Autostarting
+https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
+https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide
+https://bbs.archlinux.org/viewtopic.php?id=148790 (text mode boot from archiso)
+http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_run_OVMF (UEFI BIOS)
+https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
+https://wiki.archlinux.org/index.php/GRUB2
+http://www.brianparsons.net/Best-Practices-For-Using-Arch-Linux-on-Servers/
diff --git a/tftproot/README b/tftproot/README
index 07975ed..da0f89a 100644
--- a/tftproot/README
+++ b/tftproot/README
@@ -1 +1 @@
-The root of the TFPT server (embedded or real/standalone)
+The root of the TFTP server (embedded or real/standalone)