----- "Rob Healey" robhealey1@gmail.com wrote:
Greetings:
Hello. I am more than available and ready to help out, but something has gone wrong somewhere for me. I followed your guide down to the exact letter for letter, so that I would not make mistakes of my own. Here is what I received on my screen...
Traceback (most recent call last): File "/usr/bin/livecd-creator", line 140, in <module> sys.exit(main()) File "/usr/bin/livecd-creator", line 122, in main creator.mount(options.base_on, options.cachedir) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 524, in mount self.__create_selinuxfs() File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 456, in __create_selinuxfs for (file, value) in files + self.__getbooleans(): File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 438, in __getbooleans for i in selinux.security_get_boolean_names()[1]: OSError: [Errno 2] No such file or directory [root@donkeyandshrek testday]#
Can you help me debug it, so thay I can see what went wrong?
Seems to me to be some sort of problem with SELinux. Maybe it's blocking access to some files. You can try to switch it to permissive mode. Or have you uninstalled it?
Another way is to edit the fedora-livecd-testday.ks and after %include line add a directive selinux --permissive or selinux --disabled not to use SELinux on livecd. You will see if that helps.
I will try to look at it, but today I'm leaving on a holiday for a week, so only after that.
On Wed, Jul 29, 2009 at 06:25:51AM -0400, Kamil Paral wrote:
----- "Rob Healey" robhealey1@gmail.com wrote:
Greetings:
Hello. I am more than available and ready to help out, but something has gone wrong somewhere for me. I followed your guide down to the exact letter for letter, so that I would not make mistakes of my own. Here is what I received on my screen...
Traceback (most recent call last): File "/usr/bin/livecd-creator", line 140, in <module> sys.exit(main()) File "/usr/bin/livecd-creator", line 122, in main creator.mount(options.base_on, options.cachedir) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 524, in mount self.__create_selinuxfs() File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 456, in __create_selinuxfs for (file, value) in files + self.__getbooleans(): File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 438, in __getbooleans for i in selinux.security_get_boolean_names()[1]: OSError: [Errno 2] No such file or directory [root@donkeyandshrek testday]#
Can you help me debug it, so thay I can see what went wrong?
Seems to me to be some sort of problem with SELinux. Maybe it's blocking access to some files. You can try to switch it to permissive mode. Or have you uninstalled it?
Another way is to edit the fedora-livecd-testday.ks and after %include line add a directive selinux --permissive or selinux --disabled not to use SELinux on livecd. You will see if that helps.
I will try to look at it, but today I'm leaving on a holiday for a week, so only after that.
Indeed, I think it's usually recommended to run 'setenforce 0' before you run the livecd-creator process. I don't have the URL from which the OP was working, but if someone else does, could he or she please insert that step? Thank you!
On Wed, 2009-07-29 at 15:37 -0400, Paul W. Frields wrote:
On Wed, Jul 29, 2009 at 06:25:51AM -0400, Kamil Paral wrote:
----- "Rob Healey" robhealey1@gmail.com wrote:
Greetings:
Hello. I am more than available and ready to help out, but something has gone wrong somewhere for me. I followed your guide down to the exact letter for letter, so that I would not make mistakes of my own. Here is what I received on my screen...
Traceback (most recent call last): File "/usr/bin/livecd-creator", line 140, in <module> sys.exit(main()) File "/usr/bin/livecd-creator", line 122, in main creator.mount(options.base_on, options.cachedir) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 524, in mount self.__create_selinuxfs() File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 456, in __create_selinuxfs for (file, value) in files + self.__getbooleans(): File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 438, in __getbooleans for i in selinux.security_get_boolean_names()[1]: OSError: [Errno 2] No such file or directory [root@donkeyandshrek testday]#
Can you help me debug it, so thay I can see what went wrong?
Seems to me to be some sort of problem with SELinux. Maybe it's blocking access to some files. You can try to switch it to permissive mode. Or have you uninstalled it?
Another way is to edit the fedora-livecd-testday.ks and after %include line add a directive selinux --permissive or selinux --disabled not to use SELinux on livecd. You will see if that helps.
I will try to look at it, but today I'm leaving on a holiday for a week, so only after that.
Indeed, I think it's usually recommended to run 'setenforce 0' before you run the livecd-creator process. I don't have the URL from which the OP was working, but if someone else does, could he or she please insert that step? Thank you!
I think I've been lucky in that I've never set SELinux to permissive mode while creating test day live images.
However, if any adjustments to SELinux are needed for the running live image, my thought would be to run in permissive mode so we have a chance to capture and report AVC denials.
Thanks, James
Indeed, I think it's usually recommended to run 'setenforce 0' before you run the livecd-creator process. I don't have the URL from which the OP was working, but if someone else does, could he or she please insert that step? Thank you!
I think I've been lucky in that I've never set SELinux to permissive mode while creating test day live images.
However, if any adjustments to SELinux are needed for the running live image, my thought would be to run in permissive mode so we have a chance to capture and report AVC denials.
I've always created any livecd that I've needed on my laptop which mostly runs with selinux in enforcing mode (only the stupid closed source vpn client I need for work requires me to disable it) without issue but I ran into an interesting problem the other day which I've been meaning to report. When trying to automate the creation of a livecd from a hosted server of mine running Fedora 11 with a provider required kernel which doesn't have selinux I get the following error:
# livecd-creator --cache=/home/peter/cache -c /home/peter/fedora/build/spin-kickstarts/fedora-livecd-sugar.ks Traceback (most recent call last): File "/usr/bin/livecd-creator", line 140, in <module> sys.exit(main()) File "/usr/bin/livecd-creator", line 114, in main creator = imgcreate.LiveImageCreator(ks, name, fs_label) File "/usr/lib/python2.6/site-packages/imgcreate/live.py", line 47, in __init__ LoopImageCreator.__init__(self, *args) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 795, in __init__ ImageCreator.__init__(self, ks, name) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 76, in __init__ self.__sanity_check() File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 404, in __sanity_check raise CreatorError("SELinux requested but not enabled on host") imgcreate.errors.CreatorError/usr/lib/python2.6/site-packages/imgcreate/errors.py:40: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 return str(self.message) : SELinux requested but not enabled on host
On Wednesday, July 29 2009, Peter Robinson said:
been meaning to report. When trying to automate the creation of a livecd from a hosted server of mine running Fedora 11 with a provider required kernel which doesn't have selinux I get the following error:
# livecd-creator --cache=/home/peter/cache -c
[snip]
: SELinux requested but not enabled on host
Yes, if SELinux isn't enabled on your host, we can't enable it in the live image you're creating. Setting the security xattrs in the filesystem being created for the live image requires that you have SELinux enabled on your system (permissive vs not doesn't really matter)
Jeremy