LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:04 PM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 170

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, 04:41 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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, 09:04 PM   #3
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 170

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, 10:33 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

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


Reply



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 01:10 PM
Convert Livecd.iso to LiveDVD.iso nimnull22 Linux - Newbie 12 02-15-2010 04: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 04:14 PM
LiveCD iso boot from hard drive linuxhippy Linux - General 9 06-21-2009 06:44 AM
Creating an ISO for a livecd gvp87 Linux - Software 2 07-24-2007 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration