Score:1

Installing Ubuntu Server 20.04 on APU Board (Headless) - Fails at "executing late commands"

in flag

APU Board is a router board with headless installation via Console. The state I have now is that it runs up via console I use a "cloud-init" auto install script.

This works perfectly on my virtual machine (with GUI). But with APU Board it did not boot. So I added to the txt.cfg the following:

serial 0 115200
console 0

default live
label live
  menu label ^Install
  kernel /casper/vmlinuz
  append   initrd=/casper/initrd quiet --- autoinstall ip=dhcp ds=nocloud-net;s=https://mydomain/autoinstall/

Now when it boots on APU board it enters a state where it says "boot" and I can enter the following to start the cloud-init script to load:

Could not initialize gfx
boot: live console=ttyS0,115200n8

Everything runs smoothly just as the GUI version on virtual machine. But when it comes to "executing late commands" it just stops. No buttons to press or anything.

See image here

But on the virutal one it goes though and runs all the commands I've given in the cloud-init script:

- "cp -r /target/etc/skel /target/home/setup"
- "cp /cdrom/.setup /target/root/setup"
- "cp /cdrom/.setup.sh /target/root/setup.sh"
- "chmod +x /target/root/setup*"
- "curtin in-target --target=/target -- useradd -s /bin/bash -p *redacted* setup"
- "curtin in-target --target=/target -- chown -fR setup:setup /home/setup"
- "touch /target/etc/sudoers.d/setup"
- "echo setup ALL =NOPASSWD: /root/setup.sh > /target/etc/sudoers.d/setup"
- "echo sudo /root/setup.sh >> /target/home/setup/.bashrc"
- "echo logout >> /target/home/setup/.bashrc"

Anyone know what I'm missing?

David avatar
cn flag
What version of Ubuntu?
Aninano avatar
in flag
Updated title to have 20.04 in it :)
Score:1
in flag

The problem was in 20.04.2 version of the server ISO.

A newly released 20.04.3 works flawlessly. That is 1 week of work I'll never get back.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.