<message>Update the bootstrap script to ensure hostname resolution by adding entries to /etc/hosts, preventing "sudo: unable to resolve host" errors. Modify user-data.bootstrap to include the same hostname resolution logic. Revise dashboard templates to reflect the new project name "GNSS Guard Provisioning" and improve user interface elements related to USB boot operations, including clearer instructions and status messages. These changes enhance the overall user experience and streamline the provisioning process.
10 lines
322 B
Bash
10 lines
322 B
Bash
#!/bin/bash
|
|
# Minimal bootstrap script for cloud-init first boot (test).
|
|
set -e
|
|
|
|
# Ensure hostname resolves (avoids "sudo: unable to resolve host")
|
|
H="$(hostname)"
|
|
grep -q "127.0.1.1.*$H" /etc/hosts || echo "127.0.1.1 $H" >> /etc/hosts
|
|
|
|
echo "[$(date -Iseconds)] test completed" | tee -a /var/log/cloud-init-bootstrap.log
|