Mantic autoinstall.yaml fails on late commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
Critical
|
Unassigned | ||
ubuntu-desktop-installer |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description:
Late commands in the autoinstall.yaml file worked for 23.04 installer. "As Far As We Know": Nothing has been changed for that process between 23.04 and 23.10. I have verified that from the example yaml files in /snap/ubuntu-
Yet the autoinstall scripts we have working for 23.04, fail on late commands for 23.10.They seem to work for internal bash commands, but not for starting installer bash scripts used for installing packages and other environment setup.
This worked for 23.04, no longer with 23.10 or 23.04.1.
RE: https:/
Expected Behavior:
Late Command to run custom late-install scripts works.
Steps to Reproduce:
Use this yaml, or sililar file --+v
###
version: 1
refresh-
update: yes
keyboard:
layout: se
locale: en_US.UTF-8
timezone: Europe/Stockholm
identity:
hostname: unassigned-hostname
username: ubuntu
password: ubuntu (not the real one)
source:
search_drivers: true
id: ubuntu-
storage:
layout:
name: direct
updates: all
late-commands:
- mkdir /target/
- mkdir /target/opt/scripts
- cp -r /cdrom/packages /target/opt
- cp -r /cdrom/
- curtin in-target -- bash /opt/scripts/
- curtin in-target -- bash /opt/scripts/
- curtin in-target -- bash /opt/scripts/
###
Use logger in those scripts to log that they were called an ran to verify that it is working...
If no log entries, then it failed.
*** The scripts and everything is getting copied over. The scripts are not running
All those scripts can run manually after the install. Just not from within the installer.
Alternate work-arounds:
- We have tried adding the full path /usr/bin/bash to the late command,. That also fails...
- We have tried chmod'ing the scripts to make them executable and calling them directly. That also fails
Has something changed?
The Noble repo's are up now. We start testing that as soon as the packages are really ready for that. Right now they are still the Mantic packages, so this release is also affected.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: subiquity (unknown)
ProcVersionSign
Uname: Linux 6.5.0-9-generic x86_64
NonfreeKernelMo
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CasperVersion: 1.486
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: seed-dir (/var/lib/
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 25 19:40:17 2023
DesktopInstalle
LiveMediaBuild: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: subiquity
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in subiquity: | |
status: | New → Triaged |
importance: | Undecided → Critical |
tags: | added: foundations-todo |
Thanks for the report.
This problem was created while attempting to fix LP: #2032961, however it has caused the problem you see here.
The next steps are to revert the changes for LP: #2032961, and then issue new stable builds when possible.