Bug 453379 - LiveCD tools selinux trouble
LiveCD tools selinux trouble
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: livecd-tools (Show other bugs)
9
All Linux
low Severity low
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-30 05:08 EDT by Cepreu
Modified: 2008-06-30 21:09 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-06-30 10:43:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Cepreu 2008-06-30 05:08:35 EDT
Description of problem:
Whe i run livecd-creator, it give me this error message:
[root@localhost cepreu]# livecd-creator -c
/usr/share/livecd-tools/livecd-fedora-minimal.ks -b Fedora-9-i686-Live-KDE.iso
Using label 'fedora-minimal-200806301938' and name
'livecd-fedora-minimal-200806301938'
Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 132, in <module>
    sys.exit(main())
  File "/usr/bin/livecd-creator", line 108, in main
    creator = imgcreate.LiveImageCreator(ks, name, fs_label)
  File "/usr/lib/python2.5/site-packages/imgcreate/live.py", line 46, in __init__
    LoopImageCreator.__init__(self, *args)
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 716, in
__init__
    ImageCreator.__init__(self, ks, name)
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 74, in __init__
    self.__sanity_check()
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 398, in
__sanity_check
    raise CreatorError("SELinux requested but not enabled on host")
imgcreate.errors.CreatorError: SELinux requested but not enabled on host
[root@localhost cepreu]#

So, i was delete lines selinux=0 from my grub.conf and then boot up and again
try to run livecd-creator. But this tool still write this message.

Also:
I many times used livecd-tools in Fedora 7 and this is very useful tool. But in
Fedora 9 many of useful features was removed. Look:
[cepreu@Fedora ~]$ livecd-creator --help

usage: livecd-creator [--help]
                      [--config=<path-to-kickstart-file> | --repo=<name>,<url>
--package=<p>]
                      [--repo=<name1>,<url1>] [--repo=<name2>,<url2> ...]
                      [--package=<p1>] [--package=<p2> ...]
                      [--exclude-package=<e1>] [--exclude-package=<e2> ...]
                      [--base-on=<path-to-iso-file>]
                      [--fslabel=<label>]
                      [--skip-compression]
                      [--uncompressed-size=<size-in-MB>]
                      [--shell]

 --help              : Print usage and exit
 --config            : Path to kickstart config file
 --repo              : Add / override yum repository
 --package           : Include this package
 --exclude-package   : Exclude this package
 --base-on           : Add packages to an existing live CD iso9660 image
 --fslabel           : File system label (default: livecd-YYYYMMDD-HHMI)
 --skip-compression  : Don't compress the image
 --prelink           : Prelink the image
 --uncompressed-size : Size of uncompressed fs in MB (default: 4096)
 --shell             : Start a shell in the chroot for post-configuration

 Examples:

  Create minimal live cd:
  # livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks

  Create minimal live cd and use local package repositories:
  # livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks \
                   --repo=a-dev,file:///home/user/core/RPMS             \
                   --repo=a-extras-dev,file:///home/user/extras/RPMS

[cepreu@Fedora ~]$

It is a list of features old version livecd-creator. Very useful option --shell
for post-configuration, ability to exclude packages from existing LiveCD.
Ability to add packages to existing LiveCD. I can set repos in command-line.
But in new version i can not do all of it:
[root@localhost cepreu]# livecd-creator --help
Usage: livecd-creator [options]

Options:
  -h, --help            show this help message and exit

  Image options:
    These options define the created image.

    -c KSCFG, --config=KSCFG
                        Path to kickstart config file
    -b BASE_ON, --base-on=BASE_ON
                        Add packages to an existing live CD iso9660 image.
    -f FS_LABEL, --fslabel=FS_LABEL
                        File system label (default based on config name)

  System directory options:
    These options define directories used on your system for creating the
    live image

    -t TMPDIR, --tmpdir=TMPDIR
                        Temporary directory to use (default: /var/tmp)
    --cache=CACHEDIR    Cache directory to use (default: private cache
[root@localhost cepreu]#

So, my question:
Why you are turn so useful great utility into rubbish???
Comment 1 Jeremy Katz 2008-06-30 10:43:47 EDT
(In reply to comment #0)
> Description of problem:
> Whe i run livecd-creator, it give me this error message:
[snip]
>   File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 398, in
> __sanity_check
>     raise CreatorError("SELinux requested but not enabled on host")
> imgcreate.errors.CreatorError: SELinux requested but not enabled on host
> [root@localhost cepreu]#
> 
> So, i was delete lines selinux=0 from my grub.conf and then boot up and again
> try to run livecd-creator. But this tool still write this message.

SELinux can also be disabled with the setting in /etc/selinux/config.  If it's
set to disabled there, then it will remain disabled

> Also:
> I many times used livecd-tools in Fedora 7 and this is very useful tool. But in
> Fedora 9 many of useful features was removed. Look:

In order to ensure reproducability of image builds, we've moved some things into
the config files rather than being specified on the command line.  You can
though get the same sort of effects within the config file.
Comment 2 Cepreu 2008-06-30 21:09:14 EDT
I am so sorry for my violent tone. Now, after some investigation of .ks files, i
understand how to use livecd-tools right. I want to say big thanks to your for
this cool program. Sorry again, and thanks.

Note You need to log in before you can comment on or make changes to this bug.