diff --git a/armbian/customize-image-barebone.sh b/armbian/customize-image-barebone.sh index a4be68e..6290711 100644 --- a/armbian/customize-image-barebone.sh +++ b/armbian/customize-image-barebone.sh @@ -35,8 +35,14 @@ fix_netplan(){ EOF } +prepare_build() { + echo "ttyGS0" >> /etc/securetty + systemctl enable serial-getty@ttyGS0.service +} + echo "🍰 Rebuild starting..." +prepare_build install_bins add_overlays fix_netplan diff --git a/armbian/customize-image-fluidd.sh b/armbian/customize-image-fluidd.sh index 4fd93fd..b48a991 100644 --- a/armbian/customize-image-fluidd.sh +++ b/armbian/customize-image-fluidd.sh @@ -147,6 +147,7 @@ prepare_build() { systemctl disable ssh echo "ttyGS0" >> /etc/securetty + systemctl enable serial-getty@ttyGS0.service cp /tmp/overlay/rebuild/rebuild-version /etc/ } diff --git a/armbian/customize-image-mainsail.sh b/armbian/customize-image-mainsail.sh index 0e1bed7..c13d178 100644 --- a/armbian/customize-image-mainsail.sh +++ b/armbian/customize-image-mainsail.sh @@ -156,6 +156,7 @@ prepare_build() { systemctl disable ssh echo "ttyGS0" >> /etc/securetty + systemctl enable serial-getty@ttyGS0.service cp /tmp/overlay/rebuild/rebuild-version /etc/ } diff --git a/armbian/customize-image-octoprint.sh b/armbian/customize-image-octoprint.sh index 76699a3..1eb179c 100644 --- a/armbian/customize-image-octoprint.sh +++ b/armbian/customize-image-octoprint.sh @@ -167,6 +167,7 @@ prepare_build() { systemctl disable ssh echo "ttyGS0" >> /etc/securetty + systemctl enable serial-getty@ttyGS0.service cp /tmp/overlay/rebuild/rebuild-version /etc/ # Backwards compatibility with refactor diff --git a/armbian/customize-image-reflash.sh b/armbian/customize-image-reflash.sh index 631b4ad..c9c114f 100644 --- a/armbian/customize-image-reflash.sh +++ b/armbian/customize-image-reflash.sh @@ -28,6 +28,10 @@ prepare_install(){ cd /boot mklost+found chmod +r /boot/lost+found + + echo "ttyGS0" >> /etc/securetty + systemctl enable serial-getty@ttyGS0.service + } install_reflash() {