LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices



Reply
 
Search this Thread
Old 02-17-2013, 02:04 PM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Question livecd-creator centos 5.4 some errors while creating ISO and on boot of the ISO


Hi,

I'm trying to create a LiveCD using livecd-creator obtained from EPEL 5 repository. I also created a local repository of the CentOS 5.4 x64 where all of the rpms were copied from the DVD onto the hard drive.

I used the following command to create the ISO:

Code:
# LANG=C livecd-creator --config=centos-livecd-minimal.ks --fslabel=CentOS-minimal
The ks file was obtained from projects.centos.org and modified only to remove the repos and point to the local repo on the hard drive.

When the ISO is being created, I got the following messages:

Code:
/sbin/restorecon: invalid option -- l
usage:  /sbin/restorecon [-iFnrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]
Removing password for user root.
passwd: Success
/sbin/restorecon: invalid option -- l usage:  /sbin/restorecon [-iFnrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]

Building an initramfs at /boot/livecd-initramfs-2.6.18-164.el5.img for kernel 2.6.18-164.el5
cat: /lib/modules/2.6.18-164.el5/modules.block: No such file or directory
Done; initramfs is 4.1M.

...

Exception exceptions.AttributeError: "noneType' object has no attribute 'sysconf'" in <bound method LiveCDYum.--del-- of <imgcreate.yuminst.LiveCDYum object at 0xc6b4fd0>> ignored
The ISO is created and is bootable. However during boot I get the following messages:

Code:
udevd[322]: add_to_rules: unknown key 'ATTRS{media}'
...
Starting udev: udevd[651]: add_to_rules: unknown key 'ATTRS{media}'

Would anyone have any idea what is causing this?
 
Old 02-21-2013, 05:41 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Not sure if it's related, but I ended up creating a wrapper script for livecd-creator .. it may help:

Code:
#!/bin/bash
# create a livecd

if [[ $# -ne 3 ]]
then
    echo "Usage: $0 <architecture> <kickstart.ks> <label>"
    exit 1
fi

# vars
arch=$1
kickstart=$2
label=$3

# disable selinux
if [[ -x $(which getenforce) ]]
then
    SELINUX=true
    SEL_STATUS=$(getenforce)
fi

if [[ "$SEL_STATUS" = "Enforcing" ]]
then
    setenforce 0
    if [[ $? -eq 0 ]]
    then
        SEL_RESTORE=true
        echo "[*] disabled selinux"
    fi
fi

# add proxy
#export http_proxy=http://proxyhost:8080

# create live cd
setarch ${arch} livecd-creator --config=${kickstart} --cache=/var/cache/live --fslabel=${label}-$(date +%Y%m%d)

# re-enable selinux if required
if [[ $SEL_RESTORE ]]
then
    setenforce 1
    echo "[*] enabled selinux"
fi
 
Old 02-21-2013, 10:04 PM   #3
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 162

Original Poster
Rep: Reputation: 15
Thank you for your suggestion, I will give it a try and see if it makes a difference. However I did try disabling selinux without any improvements.

If I may ask, what host were you running to create the LiveCD, and what was the CentOS/Fedora/etc version of resulting image?

Thank you!
 
Old 02-21-2013, 11:33 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
I was running on Fedora with selinux in Enforcing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract ISO to HD, create ISO from Extractions, Boot ISO LemensTS Linux - Software 1 12-28-2010 02:10 PM
Convert Livecd.iso to LiveDVD.iso nimnull22 Linux - Newbie 12 02-15-2010 05:20 PM
CENTOS-5.3-i386-LIVECD.iso,Is it for LIVE running purpose only or for install as well redhat5 Linux - Newbie 3 08-03-2009 05:14 PM
LiveCD iso boot from hard drive linuxhippy Linux - General 9 06-21-2009 07:44 AM
Creating an ISO for a livecd gvp87 Linux - Software 2 07-24-2007 01:13 PM


All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration