Skip to content

Commit

Permalink
Merge pull request #398 from canonical/update-oem-autoinstall
Browse files Browse the repository at this point in the history
update: resolve issues while provisioning noble oem machine using oem_autoinstall
  • Loading branch information
kevinyehk authored Nov 19, 2024
2 parents 89f3c07 + cd0f1f1 commit 539d441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ wget_iso_on_dut() {
exit 4
fi
else
WGET_OPTS="--tries=3"
WGET_OPTS="--tries=3 --progress=bar:force"
# Optional URL credentials
if [ -r "$URL_TOKEN" ]; then
username=$(awk -F':' '/^username:/ {print $2}' "$URL_TOKEN" | xargs)
Expand Down Expand Up @@ -301,4 +301,4 @@ done

echo "Deployment will start after reboot"
exit 0
# Let device connector to poll the status
# Let device connector to poll the status
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import yaml
import shutil
import time
import os

from testflinger_device_connectors.devices import (
ProvisioningError,
Expand Down Expand Up @@ -76,6 +77,7 @@ def provision(self):

if not default_user_data.exists():
raise ProvisioningError("Default user-data file not found")
os.makedirs(ATTACHMENTS_PROV_DIR, exist_ok=True)
shutil.copy(default_user_data, ATTACHMENTS_PROV_DIR)
user_data = "default-user-data"

Expand Down

0 comments on commit 539d441

Please sign in to comment.