Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix installer not initialising on arm hosts in equinix metal (backport #759) #760

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions package/harvester-os/files/usr/bin/setup-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@ echo "Remove the serial-getty service..."
rm -rf "/etc/systemd/system/serial-getty*"

# reverse the ttys to start from the last one
for TTY in $(cat /sys/class/tty/console/active); do
read -r -a tty_list < /sys/class/tty/console/active

for TTY in "${tty_list[@]}"; do
tty_num=${TTY#tty}

#for arm64 the terminals are named /dev/ttyAMA*
#skip /dev/ttyAMA* if an additional tty is present
#on equinix metal /dev/ttyAMA is the only terminal available
#so needs to be used as default option
PLATFORM=$(uname -m)
if [ $PLATFORM == "aarch64" ]
if [[ $PLATFORM == "aarch64" && ${#tty_list[@]} > 1 ]]
then
if [[ $tty_num =~ ^AMA[0-9]+$ ]]; then
continue
Expand Down
Loading