aims team mailing list archive
-
aims team
-
Mailing list archive
-
Message #00686
[Bug 946480] [NEW] Remastering Precise fails on resolv.conf
You have been subscribed to a public bug by Jan Groenewald (jan-aims):
The current UCK version fails on resolv.conf when remastering Precise
Beta1.
As /etc/resolv.conf is a symlink to ../run/resolvconf/resolv.conf on
Precise.
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-live-cd.sh b/remaster-live-cd.sh
--- a/remaster-live-cd.sh 2012-03-04 16:32:00.299733023 +0100
+++ b/remaster-live-cd.sh 2012-03-04 16:43:05.375030941 +0100
@@ -354,10 +354,6 @@ function prepare_rootfs_for_chroot()
{
mount_pseudofilesystems
- echo "Copying resolv.conf..."
- cp -f /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||
- failure "Failed to copy resolv.conf, error=$?"
-
echo "Copying fstab/mtab..."
if [ -f "$REMASTER_DIR/etc/fstab" ] ; then
mv "$REMASTER_DIR/etc/fstab" "$REMASTER_DIR/etc/fstab.uck" ||
Though this might make uck fail for other Ubuntu versions. I only tested
with Precise.
** Affects: uck
Importance: High
Status: Fix Released
** Affects: uck (Ubuntu)
Importance: Undecided
Status: Fix Released
--
Remastering Precise fails on resolv.conf
https://bugs.launchpad.net/bugs/946480
You received this bug notification because you are a member of AIMS, which is subscribed to the bug report.