'ltsp-client-builder' failed with error code 1 during LTSP server installation with 20120213.1 alternate images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ltsp (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Stéphane Graber |
Bug Description
== Rationale ==
For some reason /run/resolvconf sometimes (race condition) doesn't exist at the time we try to setup LTSP. This is a bug in its own but is then making a touch /etc/resolv.conf fail in ltsp-client-
The workaround for now is to call mkdir -p /run/resolvconf through in-target, thereby ensuring /run/resolvconf always exists, which should make the touch succeed.
== Test case ==
It's unfortunately a race condition, so short of trying a few installs and considering it fixed, there's no trivial way of confirming this.
One could try to remove /run/resolvconf on purpose just before ltsp-client-builder is called and see what happens, but that'd require some pretty careful timing.
== Regression potential ==
This is a mkdir -p of a directory under /run, so it really shouldn't ever fail.
However the fix is just working around a bigger problem and if anything inside the target tries to resolve a hostname, this will still fail as we won't have any DNS servers configured.
--- original report ---
The following error occurs during LTSP server installation on hardware with Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64+mac (20130213.1).
Feb 13 11:40:02 main-menu[409]: (process:21643): mount: mounting proc on /target/proc failed: Device or resource busy
Feb 13 11:40:02 main-menu[409]: WARNING **: Configuring 'ltsp-client-
Feb 13 11:40:02 main-menu[409]: WARNING **: Menu item 'ltsp-client-
**This is with amd64+mac and will report the outcome of i386 and amd64 installations shortly.
== Test case ==
1) Press F4
2) Choose LTSP
3) Install
(This is a side-by-side installation along with another precise alternate one. Not sure if that's any reason for this)
The description shows the log from the second attempt. The first attempt says:
Feb 13 11:38:30 in-target: W: Duplicate sources.list entry cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64+mac (20130213.1)/ precise/main i386 Packages (/var/lib/ apt/lists/ Ubuntu% 2012.04. 2%20LTS% 20%5fPrecise% 20Pangolin% 5f%20-% 20Release% 20amd64+ mac%20( 20130213. 1)_dists_ precise_ main_binary- i386_Packages) apt/lists/ Ubuntu% 2012.04. 2%20LTS% 20%5fPrecise% 20Pangolin% 5f%20-% 20Release% 20amd64+ mac%20( 20130213. 1)_dists_ precise_ restricted_ binary- i386_Packages) builder' failed with error code 1
Feb 13 11:38:30 in-target: W: Duplicate sources.list entry cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64+mac (20130213.1)/ precise/restricted i386 Packages (/var/lib/
Feb 13 11:38:30 in-target: W: You may want to run apt-get update to correct these problems
Feb 13 11:38:30 in-target: /bin/touch: cannot touch `/etc/resolv.conf'
Feb 13 11:38:30 in-target: : No such file or directory
Feb 13 11:38:30 main-menu[409]: WARNING **: Configuring 'ltsp-client-