diff options
-rw-r--r-- | README | 5 | ||||
-rwxr-xr-x | archauto.sh | 10 |
2 files changed, 11 insertions, 4 deletions
@@ -11,7 +11,10 @@ TODO FROM HERE: local network: -ip link add name br0 type bridge +# hangs!? why!? +#ip link add name br0 type bridge +#ip addr add dev br0 192.168.130.1/24 +brctl addbr br0 ip link set br0 up ip addr add dev br0 192.168.130.1/24 diff --git a/archauto.sh b/archauto.sh index 20ec948..55f1abc 100755 --- a/archauto.sh +++ b/archauto.sh @@ -1,5 +1,8 @@ #!/bin/bash +exec > >(tee -i logfile.txt) +exec 2>&1 + # configuration INSTALL_DRIVE=/dev/vda @@ -48,7 +51,6 @@ echo "Installing keyring for ArchLinux32." sed -i 's/^SigLevel.*/SigLevel = Never/g' /etc/pacman.conf pacman --noconfirm -Syyw archlinux32-keyring -sed -i 's/^SigLevel.*/SigLevel = Required DatabaseOptional/g' /etc/pacman.conf pacman --noconfirm -U /var/cache/pacman/pkg/archlinux32-keyring-*.pkg.tar.xz echo "Installing minimalistic base system.." @@ -56,14 +58,13 @@ echo "Installing minimalistic base system.." pacstrap ${MOUNT_PATH} filesystem grep findutils coreutils glibc bash pacman \ mkinitcpio linux dhcpcd systemd sed systemd-sysvcompat -echo "Patching pacman in chroot to play locally.." +sed -i 's/^SigLevel.*/SigLevel = Never/g' ${MOUNT_PATH}/etc/pacman.conf cat >${MOUNT_PATH}/etc/pacman.d/mirrorlist <<EOF Server = ${HTTP_SERVER}/mirror/\$arch/\$repo EOF echo "Test if we can update the system inside chroot." - arch-chroot ${MOUNT_PATH} pacman -Syyu echo "Install /etc/fstab" @@ -104,6 +105,9 @@ arch-chroot ${MOUNT_PATH} pacman --noconfirm -S openssh echo "PermitRootLogin yes" >>${MOUNT_PATH}/etc/ssh/sshd_config arch-chroot ${MOUNT_PATH} systemctl enable sshd +# maybe later, when pacman knows the Archlinux32 developer keys +#sed -i 's/^SigLevel.*/SigLevel = Required DatabaseOptional/g' ${MOUNT_PATH}/etc/pacman.conf + echo "Unmounting.." umount ${MOUNT_PATH}/boot |