UCK shouldn't fail building when resolv.conf is missing
Bug #1011191 reported by
Pascal de Bruijn
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Customization Kit |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On my Ubuntu Precise system there is no /etc/resolv.conf anymore, so UCK shouldn't fail if it's missing:
--- a/remaster-
+++ b/remaster-
@@ -357,7 +357,7 @@ function prepare_
if [ ! -e "$REMASTER_
echo "Copying resolv.conf..."
cp -f /etc/resolv.conf "$REMASTER_
- failure "Failed to copy resolv.conf, error=$?"
+ echo "Failed to copy resolv.conf, error=$?"
fi
echo "Copying fstab/mtab..."
Changed in uck: | |
status: | New → Fix Committed |
Changed in uck: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This happend because of a broken symlink. DIR/etc/ resolv. conf" -a ! -h "$REMASTER_ DIR/etc/ resolv. conf" ] ; then
To really test if resolv.conf exist, use:
if [ ! -e "$REMASTER_
So, you can retain the failure message if resolv.conf really not exist.