[Bug 1358350] [NEW] search for eatmydata only searches root , not in target
Scott Moser
smoser at ubuntu.com
Mon Aug 18 15:12:11 UTC 2014
Public bug reported:
util.install_packages tries to determine if 'eatmydata' is available in the target, but inadvertently only checks in the host.
this results in:
chroot: failed to run command 'eatmydata': No such file or directory
Unexpected error while running command.
Command: ['chroot', '/tmp/tmp75AQEC/target', 'eatmydata', 'apt-get', 'install', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-uns
afe-io', 'linux-generic-lts-trusty']
Exit code: 127
The issue is use of os.path.join():
$ python -c 'import os.path; print(os.path.join("/target", "/usr/sbin", "foo"));'
/usr/sbin/foo
** Affects: curtin
Importance: Undecided
Status: New
** Affects: curtin (Ubuntu)
Importance: Undecided
Status: New
** Also affects: curtin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to curtin in Ubuntu.
https://bugs.launchpad.net/bugs/1358350
Title:
search for eatmydata only searches root , not in target
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1358350/+subscriptions
More information about the Ubuntu-server-bugs
mailing list