Adding data to the generated ISO image
by Asheesh Laroia
I have a directory that I'd like to be available on the generated Live CD
ISO and accessible to people who put the CD into their machines, even
without running the actual Fedora live image.
Does livecd-creator offer an option to stick data into the ISO toward the
end of the process? (I did take a look and didn't find such an option.)
If not, what would be a good way to make this happen?
Thanks!
-- Asheesh.
--
Life is a whim of several billion cells to be you for a while.
16 years, 3 months
2 commits - config/livecd-fedora-8-base-desktop.ks config/livecd-fedora-desktop.ks
by Jeremy Katz
config/livecd-fedora-8-base-desktop.ks | 1 +
config/livecd-fedora-desktop.ks | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ade8a8c33a6e3051ec9bf48d0bacdd1475a2aed5
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Mon Feb 4 11:28:59 2008 -0500
ensure liveos dir exists (#431287)
diff --git a/config/livecd-fedora-8-base-desktop.ks b/config/livecd-fedora-8-base-desktop.ks
index 199093f..2cf42b5 100644
--- a/config/livecd-fedora-8-base-desktop.ks
+++ b/config/livecd-fedora-8-base-desktop.ks
@@ -172,6 +172,7 @@ cp $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/en_US/readme-live-image-en
# only works on x86, x86_64
if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
+ if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
fi
%end
commit 37900892e214169fffcb61da25800fe26e4aa507
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Jan 31 10:08:43 2008 -0500
Fix up package name
diff --git a/config/livecd-fedora-desktop.ks b/config/livecd-fedora-desktop.ks
index 444d655..2738126 100644
--- a/config/livecd-fedora-desktop.ks
+++ b/config/livecd-fedora-desktop.ks
@@ -125,7 +125,7 @@ gnome-blog
# more fun with space saving
-scim-lang-chinese
scim-chewing
-scim-chinese-pinyin
+scim-pinyin
# save some space
-gnome-user-docs
16 years, 3 months
live fedora 8 cd - login: no shell: Permission denied
by ltx@charter.net
Hi,
I'm trying to build a basic Fedora 8 livecd to use as
a vehicle to flash a card I am working on. The flash
utility works from linux running from the hard drive
so that is not a concern at the moment.
My problem - I can't log in! The iso builds fine with
command;
livecd-creator --config=./livecd-fedora-minimal.ks --fslabel=Fedora8
When I boot from it, or use qemu to test, I can't log into root
or another id that I create in the kiskstart file. I followed
the instructions at http://fedoraproject.org/wiki/FedoraLiveCD/LiveCDHowTo
which are great, but they even point out that the livecd-fedora-minimal.ks
kickstart file found in /usr/share/livecd-tools will not let you log in.
(unless you go to all full desktop environment - which I don't need/want)
I noticed that the minimal kickstart file disabled the root id,
so I removed that and scoured the net and found that kickstart command
rootpw allows you to set the root password. That gave me some
progress. Now when I try to log in to root I get these messages;
Last login: time date...
Welcome to my world (this is what I put in /etc/motd)
login: no shell: Permission denied.
So, several questions:
1 - What is wrong with my kickstart file (below) that prevents
me from logging in?
2 - Is there any collections of kickstart files available (other than
those that come with the livecd-tools packages?
3 - Where can I find the kickstart file options documented?
Oh, my build environment is Fedora 8 (x86_64) with all the latest
updates. I point to the x86 mirrors so I can use the CD on older
machines.
I'd appreciate any help you can offer.
Thanks.
Jerry
lang en_US.UTF-8
keyboard us
timezone US/Eastern
#auth --useshadow --enablemd5
selinux --disabled
firewall --disabled
firstboot --disable
#root password
rootpw emulex
part / --size 1024
repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=i386
repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f8&arch=i386
%packages
@core
bash
kernel
passwd
policycoreutils
chkconfig
authconfig
rootfiles
%post
# FIXME: it'd be better to get this installed from a package
cat > /etc/rc.d/init.d/fedora-live << EOF
#!/bin/bash
#
# live: Init script for live image
#
# chkconfig: 345 00 99
# description: Init script for live image.
. /etc/init.d/functions
if ! strstr "\`cat /proc/cmdline\`" liveimg || [ "\$1" != "start" ] || [ -e /.liveimg-configured ] ; then
exit 0
fi
exists() {
which \$1 >/dev/null 2>&1 || return
\$*
}
touch /.liveimg-configured
# mount live image
if [ -b /dev/live ]; then
mkdir -p /mnt/live
mount -o ro /dev/live /mnt/live
fi
# add a user
useradd -c "Jerry" jerry
echo 'password' | passwd --stdin jerry
# read some variables out of /proc/cmdline
for o in \`cat /proc/cmdline\` ; do
case \$o in
ks=*)
ks="\${o#ks=}"
;;
xdriver=*)
xdriver="--set-driver=\${o#xdriver=}"
;;
esac
done
# Stopgap fix for RH #217966; should be fixed in HAL instead
touch /media/.hal-mtab
EOF
chmod 755 /etc/rc.d/init.d/fedora-live
#/sbin/restorecon /etc/rc.d/init.d/fedora-live
/sbin/chkconfig --add fedora-live
echo "Welcome to my world" > /etc/motd
%end
16 years, 3 months