Compare commits
7 Commits
master
...
before-swi
Author | SHA1 | Date |
---|---|---|
Manfred Touron | aa25f193bf | |
Sylvain Laurent | e2d2ac3541 | |
Manfred Touron | 0587af1ed3 | |
Gergely Imreh | fc7a7400ce | |
Manfred Touron | 2ec972d93d | |
Gergely Imreh | d3301a40c5 | |
Manfred Touron | 36eb9c0a07 |
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[Match]
|
||||
Name=eth0
|
||||
|
||||
[Network]
|
||||
DNS=10.1.31.38
|
||||
DNS=10.1.31.39
|
||||
Domains=cloud.online.net
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue