imgcreate/kickstart.py imgcreate/live.py tools/livecd-iso-to-pxeboot.sh
by Jeremy Katz
imgcreate/kickstart.py | 7 +++++++
imgcreate/live.py | 4 ++++
tools/livecd-iso-to-pxeboot.sh | 7 ++++++-
3 files changed, 17 insertions(+), 1 deletion(-)
New commits:
commit 7ffdfbc3ca2523f44e0c30a8a9938635d6ba0281
Author: Ian Main <imain(a)redhat.com>
Date: Mon Aug 11 18:42:00 2008 -0700
Honour --append configuration option from the kickstart file.
This patch adds support for the --append line to the bootloader config
option in the kickstart file. It also adds some logic to propogate it to
pxe boot images, as was already done with the iso-to-disk image creator.
Signed-off-by: Ian Main <imain(a)redhat.com>
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index e352e98..6ff5a73 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -461,6 +461,13 @@ def get_default_kernel(ks, default = None):
return default
return ks.handler.bootloader.default
+def get_kernel_append_line(ks, default = None):
+ if not hasattr(ks.handler.bootloader, "appendLine"):
+ return default
+ if not ks.handler.bootloader.appendLine:
+ return default
+ return ks.handler.bootloader.appendLine
+
def get_repos(ks, repo_urls = {}):
repos = []
for repo in ks.handler.repo.repoList:
diff --git a/imgcreate/live.py b/imgcreate/live.py
index f98f76c..c4e4d3e 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -99,6 +99,10 @@ class LiveImageCreatorBase(LoopImageCreator):
r += " rhgb"
if os.path.exists(self._instroot + "/usr/bin/plymouth"):
r += " rhgb"
+ # Get --append line from kickstart bootloader option.
+ append_line = kickstart.get_kernel_append_line(self.ks)
+ if append_line:
+ r += " " + append_line
return r
def _get_mkisofs_options(self, isodir):
diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh
index b1ccf5f..8b5571a 100755
--- a/tools/livecd-iso-to-pxeboot.sh
+++ b/tools/livecd-iso-to-pxeboot.sh
@@ -101,6 +101,11 @@ else
echo "Warning: You need to add pxelinux.0 to tftpboot/ subdirectory"
fi
+# Get boot append line from original cd image.
+if [ -f $CDMNT/isolinux/isolinux.cfg ]; then
+ APPEND=$(grep -m1 append isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//")
+fi
+
# pxelinux configuration.
mkdir tftpboot/pxelinux.cfg
cat > tftpboot/pxelinux.cfg/default <<EOF
@@ -109,7 +114,7 @@ TIMEOUT 20
PROMPT 0
LABEL pxeboot
KERNEL vmlinuz0
- APPEND initrd=initrd0.img root=/$ISOBASENAME rootfstype=iso9660 rootflags=loop
+ APPEND rootflags=loop $APPEND
ONERROR LOCALBOOT 0
EOF
15 years, 8 months
Problems building RHEL5 Live CD on F9
by Wayne Busuttil
Hi
I am trying to build a Live CD of RHEL5. I prefer to build a 5.2 Client
on i386, but so far only have the media for 5.1 Client on x86_64, so
have tried building for that (5.2 Client on i386 still downloading :) ).
I'm using F9 on x86_64 to build this.
I'm having problems though - the image builds, but upon attempting to
boot it, the grub screen appears and only contains "Boot from local
drive". Hitting return fails to get me any further. I've tried this by
running the ISO as a virtual CD in a KVM guest (in which case I get the
error "FATAL: INT18: BOOT FAILURE"), and also using livecd-iso-to-disk
to put the image onto a USB pen and attempting boot it on another system
(in which case the boot gets no further, but no error).
Has anyone seen this before? I can provide a copy of the ks file I am
using, along with a transcript of the build process. Any suggestions
here would be greatly appreciated.
Kind regards
Wayne
--
Wayne Busuttil
15 years, 8 months
imgcreate/kickstart.py imgcreate/live.py
by Jeremy Katz
imgcreate/kickstart.py | 7 -------
imgcreate/live.py | 4 ----
2 files changed, 11 deletions(-)
New commits:
commit 29212b58963fbb366f5451f817c2caad4458a2cf
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Wed Aug 13 13:10:10 2008 -0400
Some parts of the kernel append line were already handled; revert
This reverts commit 7ffdfbc3ca2523f44e0c30a8a9938635d6ba0281.
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 6ff5a73..e352e98 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -461,13 +461,6 @@ def get_default_kernel(ks, default = None):
return default
return ks.handler.bootloader.default
-def get_kernel_append_line(ks, default = None):
- if not hasattr(ks.handler.bootloader, "appendLine"):
- return default
- if not ks.handler.bootloader.appendLine:
- return default
- return ks.handler.bootloader.appendLine
-
def get_repos(ks, repo_urls = {}):
repos = []
for repo in ks.handler.repo.repoList:
diff --git a/imgcreate/live.py b/imgcreate/live.py
index c4e4d3e..f98f76c 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -99,10 +99,6 @@ class LiveImageCreatorBase(LoopImageCreator):
r += " rhgb"
if os.path.exists(self._instroot + "/usr/bin/plymouth"):
r += " rhgb"
- # Get --append line from kickstart bootloader option.
- append_line = kickstart.get_kernel_append_line(self.ks)
- if append_line:
- r += " " + append_line
return r
def _get_mkisofs_options(self, isodir):
15 years, 8 months
specifying package versions
by Don Raikes
Hello,
I am working on a specialized console-based livecd, and want to include my custom kernel.
I have the rpm for the kernel in a local yum repository.
I include my local repository in my kickstart file, but when I run livecd-creator, it tries to pull the latest kernel from the release repository not my custom kernel.
Is there a way to tell livecd-creator to use my custom kernel?
Donald Raikes | Accessibility Specialist
Phone: +16028246213 | Fax: +15207440826 | Mobile: +15202717608
Oracle JDeveloper QA
ORACLE United States | | Tucson, Arizona
"Please consider your environmental responsibility before printing this e-mail"
15 years, 8 months
Kickstart Script Location
by asmith11@cox.net
Hi,
I'm using a LiveCD generated by the livecd-tools. Sometimes during our testing it would be handy to view/modify the kickstart script that will be used by the live-cd installer (Anaconda) at local-disk-install-time.
In other words, we would like to be able to do the following:
1) generate a livecd
2) burn to a CD/DVD
3) boot the CD/DVD in a target machine
4) view/modify the kickstart script (e.g. tweak a few install or post-install actions)
5) launch the installer
6) install to the local hard drive
Can someone tell me where the kickstart file is stored on the livecd image?
thanks!
-Andy Smith
asmith11(a)cox.net
15 years, 8 months
Encrypting LiveCD
by ggarland@cox.net
Greetings Everyone,
I would like to say "Thanks" to all who have contributed to this project and any open source project.
Is it possible to encrypted the Live CD like you would a hard drive? If yes, could you point me to some documentation on it or give me an idea on how to go about doing it. I have done some reading on encrypting, but being so new at this, I not sure how to go about it. If it is not doable, please let me know.
Thanks again,
Gerald
15 years, 8 months
[PATCH] Handle yum api change so that conditional dict has only package names, not objects.
by Jesse Keating
This is to resolve RH bug #458803
---
imgcreate/yuminst.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index a7b04b6..628b0cd 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -103,8 +103,8 @@ class LiveCDYum(yum.YumBase):
# dict so that things don't get pulled back in as a result
# of them. yes, this is ugly. conditionals should die.
for req, pkgs in self.tsInfo.conditionals.iteritems():
- if x in pkgs:
- pkgs.remove(x)
+ if x.name in pkgs:
+ pkgs.remove(x.name)
self.tsInfo.conditionals[req] = pkgs
else:
logging.warn("No such package %s to remove" %(pkg,))
--
1.5.5.2
--
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
15 years, 8 months
[PATCH] Honour --append configuration option from the kickstart file.
by Ian Main
This patch adds support for the --append line to the bootloader config option in the kickstart file. It also adds some logic to propogate it to pxe boot images, as was already done with the iso-to-disk image creator.
Signed-off-by: Ian Main <imain(a)redhat.com>
---
imgcreate/kickstart.py | 7 +++++++
imgcreate/live.py | 4 ++++
tools/livecd-iso-to-pxeboot.sh | 7 ++++++-
3 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index e352e98..6ff5a73 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -461,6 +461,13 @@ def get_default_kernel(ks, default = None):
return default
return ks.handler.bootloader.default
+def get_kernel_append_line(ks, default = None):
+ if not hasattr(ks.handler.bootloader, "appendLine"):
+ return default
+ if not ks.handler.bootloader.appendLine:
+ return default
+ return ks.handler.bootloader.appendLine
+
def get_repos(ks, repo_urls = {}):
repos = []
for repo in ks.handler.repo.repoList:
diff --git a/imgcreate/live.py b/imgcreate/live.py
index f98f76c..c4e4d3e 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -99,6 +99,10 @@ class LiveImageCreatorBase(LoopImageCreator):
r += " rhgb"
if os.path.exists(self._instroot + "/usr/bin/plymouth"):
r += " rhgb"
+ # Get --append line from kickstart bootloader option.
+ append_line = kickstart.get_kernel_append_line(self.ks)
+ if append_line:
+ r += " " + append_line
return r
def _get_mkisofs_options(self, isodir):
diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh
index b1ccf5f..8b5571a 100755
--- a/tools/livecd-iso-to-pxeboot.sh
+++ b/tools/livecd-iso-to-pxeboot.sh
@@ -101,6 +101,11 @@ else
echo "Warning: You need to add pxelinux.0 to tftpboot/ subdirectory"
fi
+# Get boot append line from original cd image.
+if [ -f $CDMNT/isolinux/isolinux.cfg ]; then
+ APPEND=$(grep -m1 append isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//")
+fi
+
# pxelinux configuration.
mkdir tftpboot/pxelinux.cfg
cat > tftpboot/pxelinux.cfg/default <<EOF
@@ -109,7 +114,7 @@ TIMEOUT 20
PROMPT 0
LABEL pxeboot
KERNEL vmlinuz0
- APPEND initrd=initrd0.img root=/$ISOBASENAME rootfstype=iso9660 rootflags=loop
+ APPEND rootflags=loop $APPEND
ONERROR LOCALBOOT 0
EOF
--
1.5.5.1
15 years, 8 months
Attention Spin Maintainers
by Jeroen van Meeuwen
Spin Maintainers, may I please have your attention.
To be included in the Fedora 10 release cycle, you'll need a Feature
page in category ProposedFeature (and change that to the
ProposedFeatureF10 category when you feel the Spin Concept is ready for
actual inclusion). This page should be ready (eg. prepared) before the
Alpha freeze.
The Feature Page for that spin should have a short description of the
spin concept, it's target audience, any notes you want to write down on
why it is you do foo or bar. It should also contain a link to the
kickstart, but since a mailing list is still pending, I suggest you
email it to fedora-livecd-list(a)redhat.com. The Spin SIG picks it up,
does a technical review, and sends you the OK or comments. If the Spin
SIG approves, your kickstart will be added to the GIT repository for the
appropriate branch(es). At this point, it'll be forced to use
"generic-logos", still. The Spin SIG will work with you to fit in the
kickstart into the pool, get some things right or more right, and while
you -by then at least-, should also have commit "access to the GIT
repository"[1], the spin concept will continue it's path to the Board
for trademark approval. Make sure that before this happens, you have
some kind of strong argument in favor of the spin so they just can't say
no. It makes all our lives easier ;-) Once you're kickstart (spin
concept) has the almighty Board trademark approval stamp, we change
"generic-logos" back to "fedora-logos".
The kickstart should be built upon fedora-live-base.ks in the
spin-kickstarts repository at:
http://git.fedorahosted.org/git/?p=spin-kickstarts.git
This GIT repository has several branches: master, and a very distinctive
branch for each live release of Fedora out there. Naturally, the master
branch is where development goes against rawhide, and the release
specific branches is where you have a chance to maintain your spin
concept for the duration of the lifecycle of that release.
Basing on fedora-live-base.ks may be deferred from such as with the
Electronic Lab DVD spin: it bases itself on the KDE CD spin so that
minimal overhead in duplicate configuration and scripts is accomplished.
You may do the same; as long as you make sure you tell us in your
Feature page or technical review request. And if you don't tell us in
your Feature page, I'll read it from the kickstart anyway.
For now, you are requested to start filling out your spin's Feature
page, get them to the Spin SIG (members are on [2]), request access to
the gitspin-kickstarts group[1] in FAS, and start composing every two
weeks or so, to verify rawhide hasn't changed too much.
To watch commits to the spin-kickstarts GIT repository, subscribe to the
spin-kickstarts-commits list[3]
I'd love to see you all come back to me in the next week or so ;-)
Thanks in advance,
Kind regards,
Jeroen van Meeuwen
-kanarip
[1] https://admin.fedoraproject.org/accounts/group/view/gitspin-kickstarts
[2] http://fedoraproject.org/wiki/SIGs/Spins (members, guidelines, DOs
and DONTs)
[3] https://fedorahosted.org/mailman/listinfo/spin-kickstarts-commits
15 years, 8 months
livecd-creator
by Jerry Vonau
Hi all:
Just a quick question, with the version that was shipped with F8
--base-on= would work just fine, I could see the squashfs mounted with
mount. The one on F9, appears to ignore this option as I can't see where
the old squashfs is mounted when I call mount like I could with F8. Is
this a bug or something that has not setup with the changes to the way
livecd-creator works with F9?
Jerry
15 years, 8 months