diskimage-build failed in building centos image

Bug #1650582 reported by Bogun Dmitriy on 2016-12-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I'am trying to build centos-image using centos-minimal element. (use CenOS7 as host system if it matter).

The error:

+ mv /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl
+ /usr/sbin/build-locale-archive
/usr/local/bin/dib-run-parts: line 115: 12303 Bus error $target_dir/$target

The problem looks similar to problem described in https://bugs.launchpad.net/diskimage-builder/+bug/1585061

In bug #1585061 mentioned black magic... but all magic in their fix - disabling problem code on problem platform(fedora).

Andreas Florath (ansreas) wrote :

Looks there is another facade of the same problem:
when trying to create a centos image, for me it stops with

   3236 Floating point exception

in dib-run-parts:139

   LC_NUMERIC=C LC_ALL=C output_printf "%-40s %10.3f\n" ${target##start_} $duration

Some investigations show, that when removing the 'LC_NUMERIC=C LC_ALL=C' it works. Also there are some other problems with the locale: a lot of warnings like

   /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)


   Failed to set locale, defaulting to C


The host system is a Ubuntu 16.04. DIB is a current version from the master branch (commit 7603f97cadbf92c79549547dabbe252650343cac).

Colleen Murphy (krinkle) wrote :

I have seen both of these error and I've been able to work around it by inserting a "yum reinstall glibc* -y" in the 03-yum-cleanup resource before build-locale-archive is called.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers