2 commits - tools/livecd-iso-to-disk.sh tools/livecd-iso-to-pxeboot.sh
by Jeremy Katz
tools/livecd-iso-to-disk.sh | 15 +++++++++++++++
tools/livecd-iso-to-pxeboot.sh | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
New commits:
commit c5527ec56bfa7a8dda73983c7dcb60df7f8be7a7
Author: Alan Pevec <apevec(a)redhat.com>
Date: Wed Sep 17 09:55:17 2008 +0200
fix extracting boot parameters from isolinux.cfg
Signed-off-by: Alan Pevec <apevec(a)redhat.com>
diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh
index 8b5571a..280d354 100755
--- a/tools/livecd-iso-to-pxeboot.sh
+++ b/tools/livecd-iso-to-pxeboot.sh
@@ -103,7 +103,7 @@ 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 *//")
+ APPEND=$(grep -m1 append $CDMNT/isolinux/isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//")
fi
# pxelinux configuration.
commit 251b35fe8906817749c5ac3e0dedaa2952cb9039
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Wed Sep 10 13:18:57 2008 -0400
Allow setting the default XO boot target
Using --xosd or --xousb will set up a boot/olpc.fth defaulting to booting
from the SD or the USB, respectively, for use with the XO auto-boot
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index f3667d1..b9b877b 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -257,6 +257,14 @@ while [ $# -gt 2 ]; do
--xo)
xo=1
;;
+ --xo-sd)
+ xo=1
+ xosd=1
+ ;;
+ --xo-usb)
+ xo=1
+ xousb=1
+ ;;
--extra-kernel-args)
kernelargs=$2
shift
@@ -505,6 +513,13 @@ unfreeze
boot sd:\syslinux\vmlinuz0
EOF
+ if [ -n "$xosd" ]; then
+ mkdir $USBMNT/boot
+ cp $USBMNT/olpc-sd.fth $USBMNT/boot/olpc.fth
+ elif [ -n "$xousb" ]; then
+ mkdir $USBMNT/boot
+ cp $USBMNT/olpc-usb.fth $USBMNT/boot/olpc.fth
+ fi
fi
echo "Installing boot loader"
15 years, 7 months
Re : [Fedora-livecd-list] Custom kernel, and custom initrd generation
by El Kindi REZIG
But I use a kernel which I downloaded from kernel.org, and I applied some patches to it, I don't think these patches can be applied to the Fedora kernel as well. Any hints?
----- Message d'origine ----
De : Jeroen van Meeuwen <kanarip(a)kanarip.com>
À : fedora-livecd-list(a)redhat.com
Envoyé le : Mercredi, 17 Septembre 2008, 10h09mn 54s
Objet : Re: [Fedora-livecd-list] Custom kernel, and custom initrd generation
El Kindi REZIG wrote:
> Hello everybody,
>
> I'd like to use my own custom kernel which I applied some patches to,
> with live cd creator, and it's not in RPM format, I just untar it in the
> %post section into the right directories in the live cd image, but for
> the live initrd file I can't copy it like I do for vmlinuz, modules/, so
> I want to generate the live initrd for my custom kernel, is it possible
> to do that?
>
If you do use an RPM, this all falls in place nicely. Better yet, base
it on the RPM from Fedora and you have all the magic you need. The
kernel SRPM (or actually it's spec) even has some documentation in it's
comment on how to do it.
Kind regards,
Jeroen van Meeuwen
-kanarip
--
Fedora-livecd-list mailing list
Fedora-livecd-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
15 years, 7 months
Custom kernel, and custom initrd generation
by El Kindi REZIG
Hello everybody,
I'd like to use my own custom kernel which I
applied some patches to, with live cd creator, and it's not in RPM
format, I just untar it in the %post section into the right directories
in the live cd image, but for the live initrd file I can't copy it like
I do for vmlinuz, modules/, so I want to generate the live initrd for
my custom kernel, is it possible to do that?
Chreers
15 years, 7 months
[PATCH] fix extracting boot parameters from isolinux.cfg
by apevec@redhat.com
Signed-off-by: Alan Pevec <apevec(a)redhat.com>
---
tools/livecd-iso-to-pxeboot.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh
index 8b5571a..280d354 100755
--- a/tools/livecd-iso-to-pxeboot.sh
+++ b/tools/livecd-iso-to-pxeboot.sh
@@ -103,7 +103,7 @@ 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 *//")
+ APPEND=$(grep -m1 append $CDMNT/isolinux/isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//")
fi
# pxelinux configuration.
--
1.5.5.1
15 years, 7 months
Re : installation of livecd fails
by El Kindi REZIG
Hello everybody,
I'd like to use my own custom kernel which I applied some patches to, with live cd creator, and it's not in RPM format, I just untar it in the %post section into the right directories in the live cd image, but for the live initrd file I can't copy it like I do for vmlinuz, modules/, so I want to generate the live initrd for my custom kernel, is it possible to do that?
Chreers
15 years, 7 months
Portuguese Spins update
by Pedro Silva
Hi all!
Here's some git diffs for the pt_PT spins that I've been working on.
Although I have git access, I still haven't set it up. I hope someone
can pick these changes.
I still don't know how to change the KDE's keyboard workaround, so
changes will come after I install KDE on my system and look it up.
Actually, livecd-kde-pt_PT and livecd-electronic-lab-pt_PT still have
de-latin1 in the keyboard workaround.
I wonder how will Evdev Input Driver, new feature in Fedora 10, change
the gnome/xorg keyboard workaround.
diff --git a/fedora-livecd-desktop-pt_PT.ks
b/fedora-livecd-desktop-pt_PT.ks
index b3be353..78fe1d8 100644
--- a/fedora-livecd-desktop-pt_PT.ks
+++ b/fedora-livecd-desktop-pt_PT.ks
@@ -11,15 +11,15 @@ timezone Europe/Lisbon
%packages
@portuguese-support
-%end
-
-%post
-# system-config-keyboard doesn't really work (missing xorg.conf etc)
-cat >>/etc/X11/xorg.conf << EOF
-Section "InputDevice"
- Identifier "Keyboard0"
- Driver "kbd"
- Option "XkbLayout" "pt-latin1"
-EndSection
-EOF
-%end
+%end
+
+%post
+# system-config-keyboard doesn't really work (missing xorg.conf etc)
+cat >>/etc/X11/xorg.conf << EOF
+Section "InputDevice"
+ Identifier "Keyboard0"
+ Driver "kbd"
+ Option "XkbLayout" "pt"
+EndSection
+EOF
+%end
diff --git a/fedora-livedvd-developer-pt_PT.ks
b/fedora-livedvd-developer-pt_PT.ks
index 0775470..b217800 100644
--- a/fedora-livedvd-developer-pt_PT.ks
+++ b/fedora-livedvd-developer-pt_PT.ks
@@ -19,7 +19,7 @@ cat >>/etc/X11/xorg.conf << EOF
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
- Option "XkbLayout" "pt-latin1"
+ Option "XkbLayout" "pt"
EndSection
EOF
-%end
\ No newline at end of file
+%end
diff --git a/fedora-livedvd-games-pt_PT.ks
b/fedora-livedvd-games-pt_PT.ks
index d623cab..7a385a5 100644
--- a/fedora-livedvd-games-pt_PT.ks
+++ b/fedora-livedvd-games-pt_PT.ks
@@ -19,7 +19,7 @@ cat >>/etc/X11/xorg.conf << EOF
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
- Option "XkbLayout" "pt-latin1"
+ Option "XkbLayout" "pt"
EndSection
EOF
-%end
\ No newline at end of file
+%end
Best Regards,
Pedro Silva
15 years, 7 months
Making a Live USB stick from running Live CD session: Unable to fit live image FAILURE
by Robert Kwasniewski
I am new to Fedora. I was trying to make a Live USB from a running
Live CD session per the instructions here:
http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo
About half way down that page:
Bootable USB from a running Live CD/DVD
If you are already running a live CD or DVD and want to convert that
into a bootable USB stick, run the following command:
livecd-iso-to-disk /dev/live /path/tousbstick
With a 4GB SanDisk Cruzer mounted as sdi1, I went into /mnt/live/
LiveOS and ran:
./livecd-iso-to-disk squashfs.img /dev/sdi1
The script runs, and asks to add an MBR etc, but it cannot complete
and gives this message:
Unable to fit live image + overlay on available space on USB stick
Size of live image: 4096
Overlay size:
Available space: 3729
Cleaning up to exit...
The squashfs.img is 686MB, so this should work? I also tried --no-
verify and --overlay-size-mb set to zero and low values. I got the
same message. I did some searching, and found a thread about tricks
for doing Live USB from Live CD:
http://linux.derkeiler.com/Mailing-Lists/Fedora/2008-05/msg02160.html
However, I figured since it was in the wiki, it is supposed to work.
Also, the code that I saw was referencing $CDMNT and $USBMNT, but I
have no such environment variables on my running Live install. Any
clues?
Thanks,
Rob
15 years, 7 months
livecd-iso-to-pxeboot.sh and initrd0.img
by Andreas Zuber
Hello
I have a problem with the creation of a livesystem for our pxe-server. I
customized a kickstart for the livecd-creator and he successfully creates a
new iso out of that information.
But when i try to extract the images with livecd-iso-to-pxeboot.sh, it says:
"The ISO image doesn't look like a LiveCD ISO image to me.
Cleaning up to exit..."
The script is looking for the file " /isolinux/initrd0.img" if i get that
right. But this file isn't on the created CD.
Content of the created live CD:
./isolinux
./isolinux/boot.cat
./isolinux/isolinux.bin
./isolinux/isolinux.cfg
./isolinux/menu.c32
./LiveOS
./LiveOS/osmin.img
./LiveOS/squashfs.img
My question is now, what is wrong here? Got the initrd0.img renamed during
development of the livecd-tools and the livecd-iso-to-pxeboot.sh needs to be
fixed or is there something wrong with my configuration in the kickstart file
and the imitrd0.img still has to be created normally?
further i tried to build one of the kickstart files from the spin-kickstarts
repository, but it could not be created because of some dependency issues. My
own kickstart file used our local repositories and they are managed by
cobbler.
Versions of livecd-tools i used were recent fedora9 version and git HEAD.
Greeting
Andy
--
Andreas Zuber
Linux System-Ingenieur
Puzzle ITC GmbH
www.puzzle.ch
Telefon +41 31 370 22 00
Direkt +41 31 370 22 49
Mobile +41 79 766 25 51
Fax +41 31 370 22 01
OpenExpo Zürich - Puzzle ist dabei, mit Projekten,
einem Vortrag und als Sponsor des Social Events:
<http://www.openexpo.ch/openexpo-2008-zuerich/>
15 years, 7 months
Re: [Ovirt-devel] root access required?
by Richard W.M. Jones
On Mon, Sep 08, 2008 at 12:03:21PM -0400, Perry N. Myers wrote:
> Ben Guthro wrote:
>> In my endeavor to set up a build environment for our developers
>> experimenting with oVirt / libvirt, I have come across a general
>> dislike that the build of the ovirt managed node requires the user to
>> be root.
[...]
> The dependency on needing root is inherited from livecd-tools. So for us
> to remove root as a requirement for building this needs to be changed
> upstream. I'd start by posting questions/requests to the livecd mailing
> lists and see if the developers there can easily fix this.
>
> Once root is not longer required for livecd-tools, we will be able to
> build everything in ovirt as non-root.
I would also LOVE to see livecd-creator not needing root. Has anyone
talked to the livecd developers about this (email CC'd)? I can't find
any recent discussion on their mailing list about it though.
Mock does this by having a C helper program called, creatively,
'mock-helper' which does all the SUID operations needed on behalf of
mock. The result is obviously very successful for them.
Here is the source for mock-helper:
http://annexia.org/tmp/mock-helper.c.txt
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
15 years, 7 months
Re: [Ovirt-devel] root access required?
by Richard W.M. Jones
On Mon, Sep 08, 2008 at 01:19:44PM -0400, David Lively wrote:
> I've always been a big fan of Debian's 'fakeroot' for making archives
> whose files have root ownership (without actually boosting the invoking
> users privileges -- so not a security hole). And now 'fakeroot' is
> available for Fedora (9, at least) via the official yum repos.
One cool thing about fakeroot for those not familiar with it, is that
it doesn't just fake root operations, eg. chowning a file, but it also
remembers the faked state of file ownership/permissions etc.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
15 years, 7 months