[Bug 2040654] [NEW] Mantic autoinstall.yaml fails on late commands

Launchpad Bug Tracker 2040654 at bugs.launchpad.net
Wed Oct 25 20:20:24 UTC 2023


You have been subscribed to a public bug by Dan Bungert (dbungert):

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)

** Affects: subiquity
     Importance: Critical
         Status: Triaged


** Tags: amd64 apport-bug foundations-todo mantic ubuntu-desktop-installer
-- 
Mantic autoinstall.yaml fails on late commands
https://bugs.launchpad.net/bugs/2040654
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.



More information about the foundations-bugs mailing list