minishift / minishift-centos-iso

CentOS based ISO as an alternative for boot2docker ISO
GNU Lesser General Public License v3.0
40 stars 33 forks source link

/etc/selinux/targeted/contexts/files/file_contexts.bin: context system_u:object_r:nx_server_var_run_t:s0 is invalid #260

Closed vorburger closed 6 years ago

vorburger commented 6 years ago

Filing this issue as a "pro memoria" for future web search; going to close it immediately.

Without fully reading the instructions on the README, I've tried too fast to follow the instructions from just skimming over them and thinking to myself "Fedora (28) is close enough to CentOS, this is probably going to work just fine..." and hit this:

Executing /sbin/chkconfig network off
Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
Created symlink /etc/systemd/system/multi-user.target.wants/minishift-handle-user-data.service, pointing to /usr/lib/systemd/system/minishift-handle-user-data.service.
Created symlink /etc/systemd/system/multi-user.target.wants/minishift-set-ipaddress.service, pointing to /usr/lib/systemd/system/minishift-set-ipaddress.service.
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service, pointing to /usr/lib/systemd/system/docker.service.
/etc/selinux/targeted/contexts/files/file_contexts.bin: context system_u:object_r:nx_server_var_run_t:s0 is invalid
0.4%

Traceback (most recent call last):
  File "/bin/livecd-creator", line 246, in <module>
    sys.exit(main())
  File "/bin/livecd-creator", line 229, in main
    creator.package()
  File "/usr/lib/python3.6/site-packages/imgcreate/creator.py", line 830, in package
    self._stage_final_image(ops)
  File "/usr/lib/python3.6/site-packages/imgcreate/live.py", line 387, in _stage_final_image
    self.__create_iso(self.__isodir)
  File "/usr/lib/python3.6/site-packages/imgcreate/live.py", line 329, in __create_iso
    if subprocess.call(args) != 0:
  File "/usr/lib64/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'genisoimage': 'genisoimage'
make: *** [Makefile:78: iso_creation] Error 1
vorburger commented 6 years ago

Closing this issue becaues one just has to RTFM - using the CentOS VM via Vagrant does the trick.

gbraad commented 6 years ago

Not completely clear, but you tried to generate the iso for CentOS with Fedora, and/or vice versa? Currently this doesn't work. You need to use a VM.

On Fri, Aug 10, 2018, 00:55 Michael Vorburger ⛑️ notifications@github.com wrote:

Closing this issue becaues one just has to RTFM - using the CentOS VM via Vagrant does the trick.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/minishift/minishift-centos-iso/issues/260#issuecomment-411825572, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAHZqL4iYRTdkPd1O1Qnr-Kh7DnLPO1ks5uPGl0gaJpZM4V2Dyv .