Compare commits

...

7 Commits

Author SHA1 Message Date
Manfred Touron aa25f193bf Merge pull request #29 from Magicking/master
Added Online Cloud configuration file for systemd-networkd
2014-11-18 11:18:50 +01:00
Sylvain Laurent e2d2ac3541 Added Online Cloud configuration file for systemd-networkd 2014-11-18 01:38:58 +01:00
Manfred Touron 0587af1ed3 Merge pull request #28 from imrehg/archimage
[archlinux] fix directory name change in patching
2014-11-16 22:20:42 +01:00
Gergely Imreh fc7a7400ce [archlinux] fix directory name change in patching 2014-11-15 16:10:11 +00:00
Manfred Touron 2ec972d93d Merge pull request #27 from imrehg/archtty
[archlinux] add TTY settings
2014-11-14 18:51:11 +01:00
Gergely Imreh d3301a40c5 [archlinux] add TTY settings 2014-11-15 00:27:30 +08:00
Manfred Touron 36eb9c0a07 Fixed clean_target function 2014-11-09 21:52:00 +00:00
3 changed files with 13 additions and 2 deletions

View File

@ -34,7 +34,7 @@ patch_image() {
sudo cp /etc/resolv.conf $TARGET/run/systemd/resolve/resolv.conf
patch_target common-patches
patch_target archlinux-latest/patches
patch_target archlinux/patches
# TODO Get ssh keys from config
sudo mkdir -p $TARGET/root/.ssh
@ -49,6 +49,10 @@ patch_image() {
do_in_target "pacman -Sy --noconfirm $pkgs_pacman"
do_in_target "systemctl enable sshd.service"
# tty settings
do_in_target "systemctl disable getty@tty1.service"
do_in_target "systemctl enable serial-getty@ttyS0.service"
# clean chroot
sudo rm -f $TARGET/run/systemd/resolve/resolv.conf
sudo umount $TARGET/{sys,dev,proc} || true

View File

@ -0,0 +1,7 @@
[Match]
Name=eth0
[Network]
DNS=10.1.31.38
DNS=10.1.31.39
Domains=cloud.online.net

View File

@ -59,7 +59,7 @@ patch_target() {
}
clean_target() {
clean_paths=$1
clean_paths="$@"
for path in $clean_paths; do
if [ -e "$TARGET/$path" ]; then
sudo rm -rf "$TARGET/$path"