Activity log for bug #2040654

Date Who What changed Old value New value Message
2023-10-25 20:07:31 Mike Ferreira bug added bug
2023-10-25 20:08:59 Mike Ferreira description Description: Late commands in the autoinstall.yaml file worked for 23.04 installer. As For 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-desktop-installer/1[0-9][0-9][0-9]/usr/share/doc/*/examples/ 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://ubuntuforums.org/showthread.php?t=2491776 Expected Behavior: Late Command to run custom late-install scripts works. Steps to Reproduce: Use this yaml, or sililar file --+v ### version: 1 refresh-installer: 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-desktop-minimal storage: layout: name: direct updates: all late-commands: - mkdir /target/opt/packages - mkdir /target/opt/scripts - cp -r /cdrom/packages /target/opt - cp -r /cdrom/nocloud/scripts /target/opt - curtin in-target -- bash /opt/scripts/post-install1.sh - curtin in-target -- bash /opt/scripts/post-install2.sh - curtin in-target -- bash /opt/scripts/post-install3.sh ### 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) ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3 Uname: Linux 6.5.0-9-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.27.0-0ubuntu5 Architecture: amd64 CasperMD5CheckResult: pass CasperVersion: 1.486 CloudArchitecture: x86_64 CloudID: nocloud CloudName: unknown CloudPlatform: nocloud CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud) CurrentDesktop: ubuntu:GNOME Date: Wed Oct 25 19:40:17 2023 DesktopInstallerRev: 1267 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-256color XDG_RUNTIME_DIR=<set> SourcePackage: subiquity UpgradeStatus: No upgrade log present (probably fresh install) 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-desktop-installer/1[0-9][0-9][0-9]/usr/share/doc/*/examples/ 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://ubuntuforums.org/showthread.php?t=2491776 Expected Behavior: Late Command to run custom late-install scripts works. Steps to Reproduce: Use this yaml, or sililar file --+v ### version: 1   refresh-installer:           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-desktop-minimal   storage:     layout:       name: direct   updates: all   late-commands:     - mkdir /target/opt/packages     - mkdir /target/opt/scripts     - cp -r /cdrom/packages /target/opt     - cp -r /cdrom/nocloud/scripts /target/opt     - curtin in-target -- bash /opt/scripts/post-install1.sh     - curtin in-target -- bash /opt/scripts/post-install2.sh     - curtin in-target -- bash /opt/scripts/post-install3.sh ### 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) ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3 Uname: Linux 6.5.0-9-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.27.0-0ubuntu5 Architecture: amd64 CasperMD5CheckResult: pass CasperVersion: 1.486 CloudArchitecture: x86_64 CloudID: nocloud CloudName: unknown CloudPlatform: nocloud CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud) CurrentDesktop: ubuntu:GNOME Date: Wed Oct 25 19:40:17 2023 DesktopInstallerRev: 1267 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-256color  XDG_RUNTIME_DIR=<set> SourcePackage: subiquity UpgradeStatus: No upgrade log present (probably fresh install)
2023-10-25 20:19:31 Dan Bungert subiquity: status New Triaged
2023-10-25 20:19:33 Dan Bungert subiquity: importance Undecided Critical
2023-10-25 20:20:11 Dan Bungert tags amd64 apport-bug mantic ubuntu-desktop-installer amd64 apport-bug foundations-todo mantic ubuntu-desktop-installer
2023-10-25 20:20:24 Dan Bungert bug added subscriber Ubuntu Foundations Bugs
2023-10-25 22:29:47 Dan Bungert subiquity: status Triaged In Progress
2023-10-26 01:32:14 Chris Guiver bug added subscriber Chris Guiver
2023-11-09 09:18:44 madjax attachment added curtin-install.log https://bugs.launchpad.net/subiquity/+bug/2040654/+attachment/5717463/+files/curtin-install.log
2023-11-13 11:33:59 madjax attachment added subiquity-server-info.log https://bugs.launchpad.net/subiquity/+bug/2040654/+attachment/5718991/+files/subiquity-server-info.log
2024-02-22 22:25:25 Dan Bungert bug task added ubuntu-desktop-installer
2024-02-22 22:40:13 Dan Bungert subiquity: status In Progress Fix Released
2024-02-22 22:40:18 Dan Bungert ubuntu-desktop-installer: status New Fix Released