2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Note workaround for 'No data available'

In a diskless boot, sometimes the build system
might not label the scratch contents
correctly.  setfiles can be used to fix it.

Notably, this seems to cause the overlay+squashfs to
return 'no data available' on select
calls even with selinux disabled, so it may be another
gap with overlay and/or limitation of squashfs when
queried about modification without a label.
This commit is contained in:
Jarrod Johnson 2021-09-21 08:13:06 -04:00
parent dd89c48b9a
commit 3b3fffb36b

View File

@ -525,6 +525,10 @@ class ElHandler(OsHandler):
cmd.extend(glob.glob(os.path.join(targdir, '*')))
subprocess.check_call(cmd)
subprocess.check_call(['yum'] + self.yumargs)
# note that in some cases, may need to fix labels for function even without selinux
# for now a TODO, but note the command to repair a scratch directery if needed
# can be done by unpack, setfiles, then pack again too
#setfiles -r buildscratch /etc/selinux/targeted/contexts/files/file_contexts buildscratch
def versionize_string(key):