cdromupgrade fails if run with a relative path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Low
|
Andy Whitcroft |
Bug Description
Binary package hint: update-manager
When upgrading a system from an alternate installer CD you execute the cdromupgrade script on the CD to initiate the upgrade. However if you do not run this with an absolute path it will fail with a very non-obvious error:
/media/disk# ./cdromupgrade
tar: ./dists/
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Could not find the upgrade application in the archive, exiting
/media/disk#
We should at least tell the user to use an absolute path, if not simply cope.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: update-manager 1:0.98.1
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: update-manager
Uname: Linux 2.6.28-8-server x86_64
Related branches
- Ubuntu Core Development Team: Pending requested
- Diff: None lines
This is caused by the interaction between how we locate the installer tarball and the fact we are cd'ing into a temporary directory. We can simply detect that the path is not absolute and make it absolute using pwd.