Pascal, please note I had the problem much earlier and have not tried the
patch as yet.
In fact Lubuntu precise i386 now has a non-pae kernel by default and I have
not tired the
remastersys since.
On Thu, Mar 22, 2012 at 11:17 AM, Pascal de Bruijn <email address hidden>wrote:
> Are you sure you are having the same issue? Because the patch removes
> the problematic copy action, after which it simply can't be a problem
> any more... Right?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/946480
>
> Title:
> Remastering Precise fails on resolv.conf
>
> Status in Ubuntu Customization Kit:
> Confirmed
> Status in “uck” package in Ubuntu:
> Confirmed
>
> Bug description:
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/uck/+bug/946480/+subscriptions
>
Pascal, please note I had the problem much earlier and have not tried the
patch as yet.
In fact Lubuntu precise i386 now has a non-pae kernel by default and I have
not tired the
remastersys since.
On Thu, Mar 22, 2012 at 11:17 AM, Pascal de Bruijn <email address hidden>wrote:
> Are you sure you are having the same issue? Because the patch removes /bugs.launchpad .net/bugs/ 946480 resolvconf/ resolv. conf on live-cd. sh b/remaster- live-cd. sh live-cd. sh 2012-03-04 16:32:00.299733023 +0100 live-cd. sh 2012-03-04 16:43:05.375030941 +0100 rootfs_ for_chroot( ) esystems DIR/etc/ resolv. conf" || DIR/etc/ fstab" ] ; then DIR/etc/ fstab" "$REMASTER_ DIR/etc/ fstab.uck" /bugs.launchpad .net/uck/ +bug/946480/ +subscriptions
> the problematic copy action, after which it simply can't be a problem
> any more... Right?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Remastering Precise fails on resolv.conf
>
> Status in Ubuntu Customization Kit:
> Confirmed
> Status in “uck” package in Ubuntu:
> Confirmed
>
> Bug description:
> The current UCK version fails on resolv.conf when remastering Precise
> Beta1.
>
> As /etc/resolv.conf is a symlink to ../run/
> 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-
> --- a/remaster-
> +++ b/remaster-
> @@ -354,10 +354,6 @@ function prepare_
> {
> mount_pseudofil
>
> - 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.
>
> To manage notifications about this bug go to:
> https:/
>