#11854 NORM Not Tri: olpc-os-builder breaks if SELinux is enabled on the host
Zarro Boogs per Child
bugtracker at laptop.org
Mon May 14 13:23:48 EDT 2012
#11854: olpc-os-builder breaks if SELinux is enabled on the host
--------------------------+-------------------------------------------------
Reporter: sascha_silbe | Owner: dsd
Type: defect | Status: new
Priority: normal | Milestone: Not Triaged
Component: not assigned | Version: Development source as of this date
Keywords: | Next_action: never set
Verified: 0 | Deployment_affected:
Blockedby: | Blocking:
--------------------------+-------------------------------------------------
On a freshly installed Fedora 17 VM, latest olpc-os-builder from the
master branch fails to build using {{{examples/olpc-os-12.1.0-xo1.5.ini}}}
with the following error message:
{{{
Traceback (most recent call last):
File "/home/sascha.silbe/dx4/modules/base/build.40.imagecreate.py", line
53, in <module>
sys.exit(main())
File "/home/sascha.silbe/dx4/modules/base/build.40.imagecreate.py", line
38, in main
creator.configure()
File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 724,
in configure
kickstart.XConfig(self._instroot).apply(ksh.xconfig)
File "/usr/lib/python2.7/site-packages/imgcreate/kickstart.py", line
237, in apply
f = open(self.path("/etc/inittab"), "rw+")
IOError: [Errno 2] No such file or directory: '/tmp/imgcreate-
SkM_NT/install_root/etc/inittab'
}}}
The actual error is happening earlier, but yum continues regardless, as
can be seen in the [https://sascha.silbe.org/tmp/121006SS1-build.log build
log]:
{{{
/var/tmp/rpm-tmp.qdTWTM: line 1: /usr/sbin/groupadd: Permission denied
error: %pre(initscripts-9.37-1.fc17.i686) scriptlet failed, exit status
126
error: initscripts-9.37-1.fc17.i686: install failed
}}}
After turning off SELinux (by passing {{{selinux=0}}} to the kernel) on
the build host (the F17 VM), the build process continues well beyond this
point (i.e. fixes / works around the problem).
olpc-os-builder should either be fixed to work with SELinux activated (if
possible) or bail out early with a clear instruction to turn off SELinux
on the build host.
--
Ticket URL: <http://dev.laptop.org/ticket/11854>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list