Crash when unmounting cdrom
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
Fix Released
|
High
|
Olivier Gayot |
Bug Description
On the development version of Subiquity (currently 60d6746a41ee38a
subprocess.
2022-09-19 18:07:02,223 ERROR subiquity.
After investigation, this seems to have been broken by this patch https:/
A partial revert of the patch fixes the issue:
https:/
This could be caused by two processes (e.g., Subiquity & curtin?) trying to unmount cdrom. To be investigated further.
Changed in subiquity (Ubuntu): | |
importance: | Undecided → High |
tags: | added: foundations-todo |
Changed in subiquity (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in subiquity (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
tags: | removed: foundations-todo |
As shown below, we attempt to unmount the cdrom twice:
2022-09-20 08:35:59,483 DEBUG subiquitycore. utils:114 astart_command called: ['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifi er=subiquity_ log.1973' , '--setenv', 'PATH=/ snap/subiquity/ x1/bin: /snap/subiquity /x1/usr/ bin:/usr/ local/sbin: / bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games:/ usr/local/ games:/ snap/bin: /snap/subiquity /x1/bin: /snap/subiquity /x1/sbin' , '--setenv', 'PYTHONPATH= :/snap/ subiquity/ x1/lib/ python3. 8/site- packages' , '--setenv', 'PYTHON= /snap/subiquity /x1/usr/ bin/pyt snap/subiquity/ x1', '--', 'umount', '/target/cdrom'] utils:114 astart_command called: ['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifi er=subiquity_ log.1973' , '--setenv', 'PATH=/ snap/subiquity/ x1/bin: /snap/subiquity /x1/usr/ bin:/usr/ local/sbin: / bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games:/ usr/local/ games:/ snap/bin: /snap/subiquity /x1/bin: /snap/subiquity /x1/sbin' , '--setenv', 'PYTHONPATH= :/snap/ subiquity/ x1/lib/ python3. 8/site- packages' , '--setenv', 'PYTHON= /snap/subiquity /x1/usr/ bin/pyt snap/subiquity/ x1', '--', 'umount', '/target/cdrom']
usr/local/
hon3.8', '--setenv', 'SNAP=/
[...]
2022-09-20 08:36:04,159 DEBUG subiquitycore.
usr/local/
hon3.8', '--setenv', 'SNAP=/
We do it once explicitly and then a second time in the self.cleanup() method.
await self.unmount(
Mountpoint( mountpoint= target_ mnt.p(' cdrom') ),
remove= False)
os.rmdir( target_ mnt.p(' cdrom') )
await _restore_ dir('etc/ apt')
if self.app. base_model. network. has_network:
self. app, context, "in-target", "-t", target_mnt.p(),
"--", "apt-get", "update", private_ mounts= True) dir('var/ lib/apt/ lists')
await run_curtin_command(
else:
await _restore_
await self.cleanup()