summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README25
-rwxr-xr-xarchauto.sh13
2 files changed, 24 insertions, 14 deletions
diff --git a/README b/README
index 19b7ffb..ed301b4 100644
--- a/README
+++ b/README
@@ -16,19 +16,19 @@ cd archlive
# always had problem with keys, switch of signing (not good, I know)
sed -i 's/^SigLevel.*/SigLevel = Never/g' pacman.conf
-# build the live CDs, this take quite a while
+# build the live CDs, this takes quite a while
./build.sh -v build single
cd ..
-# We mount it and make it accessible over a webserver:
+# We mount it and make it accessible over the 'darkhttpd' webserver:
mkdir archiso
mount -o loop,ro archlive/out/archlinux-2016.02.06-dual.iso archiso
darkhttpd . --port 8080 &
# copy packages from host system (there is no need to build a full-fledged
-# mirror now)
+# mirror now, basic packages should all exist on the host)
./copy_local_packages.sh
TFTP root
@@ -52,18 +52,25 @@ rm -rf INSTALL
mkdir INSTALL
cd INSTALL
+yaourt -G joe
+chown -R build:users joe
+cd joe
+cd ..
+
yaourt -G cfengine
chown -R build:users cfengine
cd cfengine
su build -c 'makepkg -f'
cd ..
+cd ..
+
Put them into a local repository 'aba':
+rm -rf aba/os/x86_64/
mkdir -p aba/os/x86_64/
cp INSTALL/*/*pkg.tar.xz aba/os/x86_64/.
-mkdir -p aba/os/x86_64/
repo-add aba/os/x86_64/aba.db.tar.gz aba/os/x86_64/*
Install Archlinux
@@ -80,13 +87,15 @@ qemu-system-x86_64 -drive file=arch.img,index=0,media=disk,format=raw -net nic \
-m 512 \
-machine accel=kvm -redir tcp:222::22 \
-nographic -serial mon:stdio |& tee log
-# -curses
-# -nographic -serial mon:stdio
+
+TODOs
+-----
# remote install (manually), then follow docu
# (this gives a rough idea of what should be automatized)
-passwd
-systemctl start sshd
+#passwd
+#systemctl start sshd
+#sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
# automatic installation frameworks for ArchLinux
# - AIF
diff --git a/archauto.sh b/archauto.sh
index 6d1c2ff..613c06e 100755
--- a/archauto.sh
+++ b/archauto.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/bash -x
{
@@ -34,11 +34,12 @@ sgdisk -G ${INSTALL_DRIVE}
mkswap ${INSTALL_DRIVE}${PARTITION_SWAP}
swapon ${INSTALL_DRIVE}${PARTITION_SWAP}
mkfs.ext4 ${INSTALL_DRIVE}${PARTITION_ROOT}
+#mkfs.ext4 ${INSTALL_DRIVE}${PARTITION_BOOT}
mkdir -p ${MOUNT_PATH}
mount ${INSTALL_DRIVE}${PARTITION_ROOT} ${MOUNT_PATH}
-mkdir ${MOUNT_PATH}/boot
-mount ${INSTALL_DRIVE}${PARTITION_BOOT} ${MOUNT_PATH}/boot
+#mkdir ${MOUNT_PATH}/boot
+#mount ${INSTALL_DRIVE}${PARTITION_BOOT} ${MOUNT_PATH}/boot
#export http_proxy=http://192.168.1.12:3128
export no_proxy=localhost,10.0.2.2
@@ -73,10 +74,10 @@ cp ${MOUNT_PATH}/usr/share/locale/en@quot/LC_MESSAGES/grub.mo ${MOUNT_PATH}/boot
# disable quiet mode, set text mode instead of graphical mode
# also ban cirrus KVM
# set correct path of systemd binary (symlink /sbin/init has gone)
-sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=cirrus init=\/usr\/lib\/systemd\/systemd" console=ttyS0,9600n8/g' ${MOUNT_PATH}/etc/default/grub
+sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=cirrus init=\/usr\/lib\/systemd\/systemd console=ttyS0,9600n8"/g' ${MOUNT_PATH}/etc/default/grub
sed -i 's/GRUB_GFXMODE=auto/GRUB_GFXMODE=text/g' ${MOUNT_PATH}/etc/default/grub
sed -i 's/GRUB_TERMINAL_INPUT=console/GRUB_TERMINAL_INPUT=serial/g' ${MOUNT_PATH}/etc/default/grub
-sed -i 's/GRUB_TERMINAL_OUTPUT=console/GRUB_TERMINAL_OUTPUT=serial/g' ${MOUNT_PATH}/etc/default/grub
+sed -i 's/#GRUB_TERMINAL_OUTPUT=console/GRUB_TERMINAL_OUTPUT=serial/g' ${MOUNT_PATH}/etc/default/grub
echo 'GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"' >> ${MOUNT_PATH}/etc/default/grub
arch-chroot ${MOUNT_PATH} grub-mkconfig -o /boot/grub/grub.cfg
arch-chroot ${MOUNT_PATH} grub-install --target=i386-pc --recheck ${INSTALL_DRIVE}
@@ -127,7 +128,7 @@ arch-chroot ${MOUNT_PATH} systemctl enable cf-serverd.service
#read
echo "Unmounting installation mount points.."
-umount ${MOUNT_PATH}/boot
+#umount ${MOUNT_PATH}/boot
umount ${MOUNT_PATH}
echo "Done.. Rebooting system.."