Remastering Precise fails on resolv.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Customization Kit |
Fix Released
|
High
|
Unassigned | ||
uck (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The current UCK version fails on resolv.conf when remastering Precise Beta1.
As /etc/resolv.conf is a symlink to ../run/
Since /run is bind-mounted from the host OS, the source and destination resolv.conf are the same files, thus cp returns an error code, making uck fail.
Since /run is bind-mounted it makes the entire copy of resolv.conf superfluous, so it can be removed:
diff -Nurpd a/remaster-
--- a/remaster-
+++ b/remaster-
@@ -354,10 +354,6 @@ function prepare_
{
mount_
- echo "Copying resolv.conf..."
- cp -f /etc/resolv.conf "$REMASTER_
- failure "Failed to copy resolv.conf, error=$?"
-
echo "Copying fstab/mtab..."
if [ -f "$REMASTER_
mv "$REMASTER_
Though this might make uck fail for other Ubuntu versions. I only tested with Precise.
Related branches
Changed in uck: | |
status: | New → Confirmed |
Changed in uck: | |
assignee: | nobody → Fabrizio Balliano (fabrizio-balliano) |
importance: | Undecided → High |
status: | Confirmed → Fix Committed |
Changed in uck (Ubuntu): | |
assignee: | nobody → Vibhav Pant (vibhavp) |
Changed in uck: | |
status: | Fix Committed → Fix Released |
Changed in uck (Ubuntu): | |
assignee: | Vibhav Pant (vibhavp) → nobody |
Changed in uck: | |
assignee: | Fabrizio Balliano (fabrizio-balliano) → nobody |
Changed in uck (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.