late-commands crashes when cat'ing /target/boot/grub/grub.cfg
This bug report will be marked for expiration in 41 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Near the end of the late-commands section in autoinstall.yaml, subiquity crashes with a simple cat :
systemd-cat --level-
It's just to debug, so disabling this command is enough to keep it going, but since it was working well with 22.04, i can't understand why it fails with 24.04 :
2024-04-05 07:28:14,431 DEBUG subiquitycore.
2024-04-05 07:28:14,450 DEBUG subiquitycore.
2024-04-05 07:28:14,450 ERROR root:30 finish: subiquity/
2024-04-05 07:28:14,450 ERROR root:30 finish: subiquity/Late/run: FAIL: Command '['systemd-cat', '--level-
2024-04-05 07:28:14,451 ERROR subiquity.
Traceback (most recent call last):
File "/snap/
await self.run()
File "/snap/
return await meth(self, **kw)
File "/snap/
await arun_command(
File "/snap/
raise subprocess.
subprocess.
2024-04-05 07:28:14,475 DEBUG subiquity.
2024-04-05 07:28:14,476 INFO subiquity.
2024-04-05 07:28:14,476 INFO root:30 start: subiquity/
2024-04-05 07:28:15,487 INFO root:30 finish: subiquity/
summary: |
- Subiquity crashes with ubuntu 24.04 daily build and cat in late-commands + Subiquity crashes with noble daily build and cat in late-commands |
summary: |
- Subiquity crashes with noble daily build and cat in late-commands + late-commands crashes when cat'ing /target/boot/grub/grub.cfg |
Based on the error I'm going to guess /target/ boot/grub/ grub.cfg isn't available yet by the time the command is run. Could you make do with something like this instead?:
late-commands: boot/grub/ grub.cfg ] ; do sleep 1 ; done boot/grub/ grub.cfg > /dev/console
- while [ ! -f /target/
- cat /target/
FWIW I did a simple autoinstall in a VM with just the above cat command and I couldn't reproduce the issue.