#6097 empty /etc/os-release in builds
Closed: Fixed None Opened 9 years ago by orion.

I'm seeing an empty /etc/os-release in koji builds now:

http://koji.fedoraproject.org/koji/taskinfo?taskID=8800554

{{{
+ cat /etc/os-release
+ exit 0
}}}

see in root.log:

DEBUG util.py:119: touching file: /var/lib/mock/f21-build-2895031-451021/root/etc/os-release

after installing fedora-release. Cannot reproduce locally.


The mock 1.2.5 release had incorrect source, so it didn't actually fix what it claimed to. :(

I have updated all the builders to 1.2.6 now.

Can you retry your build?

Exactly the same with 1.2.6 I'm afraid. Build is current shorewall master if you want to try yourself.

http://koji.fedoraproject.org/koji/taskinfo?taskID=8803232

This build failure looks like it's due to the install trying to install something as root:root, but it's running as mockbuild, so it can't chown the file.

{{{
Installing Shorewall Core Version 4.6.6.1
./install.sh: line 305: [: !=: unary operator expected
install: cannot change ownership of '/builddir/build/BUILDROOT/shorewall-4.6.6.1-2.fc22.noarch/usr/libexec/shorewall/wait4ifup': Operation not permitted
ERROR: Failed to install -T -o root -g root -m 0755 wait4ifup /builddir/build/BUILDROOT/shorewall-4.6.6.1-2.fc22.noarch/usr/libexec/shorewall/wait4ifup
}}}

It might look that way, but the real problem is that /etc/os-release is empty and that triggers the install.sh: line 305 error, which leads to other problems. So a simple test would be to do:

{{{
%prep
cat /etc/os-release
}}}

ok. Can you please file a bug against mock?

We aren't the mock maintainers here. ;)

I will, but I can't reproduce locally on my mock builder, I only see it on the koji builders.

Filed https://bugzilla.redhat.com/show_bug.cgi?id=1188770 - apparently it only happens when starting without a root-cache.

Fixed in commit:
* 10a6fe5 touch should not truncate file [RHBZ#1188770]

This was fixed and rolled out to builders before alpha freeze. ;)

Metadata Update from @orion:
- Issue set to the milestone: Fedora 21 Final

7 years ago

Login to comment on this ticket.

Metadata