liveinst fails after resize of image
by mdda
I have created a new Fedora spin 'EeeDora' specifically for the EeePC. The
Live Image boots fine (very fine). Live install works in manual mode, but
with a kickstart file (I'd like to make this completely automatic) Anaconda
goes through the installation (writing packages=100%), but gives an
exception in the last stages. This leaves the machine in an unusable state.
What appears to be happening is that the root fs is not being mounted on
/mnt/sysimage/ after the resize. Looking at /dev/sda1, I can see everything
got installed up to that stage.
anaconda None exception report
Traceback (most recent call first):
File "/usr/lib/anaconda/fsset.py", line 1202, in write
f = open (prefix + "/etc/fstab", "w")
File "/usr/lib/anaconda/livecd.py", line 313, in doPostInstall
anaconda.id.fsset.write(anaconda.rootPath)
File "/usr/lib/anaconda/backend.py", line 195, in doPostInstall
anaconda.backend.doPostInstall(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/gui.py", line 1048, in nextClicked
self.anaconda.dispatch.gotoNext()
File "/usr/lib/anaconda/iw/progress_gui.py", line 67, in renderCallback
self.intf.icw.nextClicked()
File "/usr/lib/anaconda/gui.py", line 1075, in handleRenderCallback
self.currentWindow.renderCallback()
IOError: [Errno 2] No such file or directory: '/mnt/sysimage/etc/fstab'
http://www.nabble.com/file/p14207396/error1 error1
Just me hacking around... : If I force ext2 partitions to be mounted (by
jamming isMountable() ) then anaconda gets to complete - but the machine is
still unbootable because /dev/root doesn't get created/found properly.
Can someone shed some light on this? My knowledge of Python approaches
zero, so it's tricky to sort this out (particularly since I'm doing this on
the small keyboard of the Eee, booted on the live image...)
Thanks
Martin
:-)
--
View this message in context: http://www.nabble.com/liveinst-fails-after-resize-of-image-tf4960453.html...
Sent from the Fedora Livecd List mailing list archive at Nabble.com.
16 years, 4 months
Does live-cd creator use the repo lines in the kickstart file?
by Bryan Kearney
I am invoking (on an updated fc8) the following:
livecd-creator -c foo.cfg
foo.cfg contains server repos, and the tool does not seem to run them.
Even using the provided fc7 kickstarts (livecd-creator -c
./livecd-fedora-7-desktop.ks) seems to result in the same error:
Error creating Live CD : Failed to find package 'syslinux' : No
package(s) available to install
Does the tool use the embedded repos?
-- bk
16 years, 4 months
Unable to exclude firefox
by Sebastian Vahl
Hi.
I'm still unable to don't include firefox on a livecd (although the
xulrunner/firefox conflict is resolved). I'm not even having an idea why it
is included in my local spins. I've explicitely removed it from
livecd-fedora-base-desktop.ks and livecd-fedora-kde.ks (with "-firefox") and
it shouldn't be needed by any package (since xulrunner is there). I can
easily remove it on a running livecd (or even with "--shell") and rpm is not
complaining about dependencies then.
firefox is installed right aside xulrunner, so I'm assuming it's maybe related
to the provides from firefox (esp. gecko-libs).
Installing: kaffeine ##################### [652/770]
Installing: gstreamer-plugins-good ##################### [653/770]
Installing: gucharmap ##################### [654/770]
Installing: libgnomekbd ##################### [655/770]
Installing: evolution-data-server ##################### [656/770]
Installing: gtkhtml2 ##################### [657/770]
Installing: gnome-vfs2-obexftp ##################### [658/770]
Installing: bluez-gnome ##################### [659/770]
Installing: gnome-mount ##################### [660/770]
Installing: kaffeine-libs ##################### [661/770]
Installing: firefox ##################### [662/770]
Installing: xulrunner ##################### [663/770]
Installing: kde-settings-kdm ##################### [664/770]
Installing: yelp ##################### [665/770]
Installing: bluez-utils ##################### [666/770]
Installing: koffice-filters ##################### [667/770]
Any help, hints, advises here?
Sebastian
16 years, 4 months
Laptop options for Live-CD
by Keith Roberts
I'm not a builder myself atm, but would it be possible for
the Live-CD not use power management on laptops? Or at least
give the user an option of disabling that when booting from
a laptop machine? Reason being is that my mouse jumps all
over the place when some sort of Power Saving happens.
Regards
Keith Roberts
-----------------------------------------------------------------
In theory, theory and practice are the same;
in practice they are not.
Websites:
http://www.karsites.net
http://www.raised-from-the-dead.org.uk
This email address (and all domain email addesses) are
challenge-response protected with TMDA [http://tmda.net]
-----------------------------------------------------------------
16 years, 4 months
[PATCH] Add image-creator, a simple ext3 system image builder
by Mark McLoughlin
Add a simple imgcreate frontend which would be useful
both to people who just want a simple way of building
system images, but also as the simplest possible example
of using the imgcreate API.
Signed-off-by: Mark McLoughlin <markmc(a)redhat.com>
---
API | 7 ++--
Makefile | 1 +
tools/image-creator | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 88 insertions(+), 3 deletions(-)
create mode 100755 tools/image-creator
diff --git a/API b/API
index 8b7ca8b..9783c74 100644
--- a/API
+++ b/API
@@ -5,9 +5,10 @@ functionality.
== Image Creation Frontends ==
-livecd-creator is one frontend for creating images. But really, it's
-straight-forward to build your own which deals with your own specific
-needs. To do so, you'll want to do the following:
+livecd-creator and image-creator are both frontends for creating
+images. But really, it's straight-forward to build your own which
+deals with your own specific needs. To do so, you'll want to do
+the following:
* Create a pykickstart handler object. All of the image creators are
driven by data stored in pykickstart handlers.
diff --git a/Makefile b/Makefile
index c3fc032..3d86b29 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ all:
install:
$(INSTALL_PROGRAM) -D creator/livecd-creator $(DESTDIR)/usr/bin/livecd-creator
+ $(INSTALL_PROGRAM) -D creator/image-creator $(DESTDIR)/usr/bin/image-creator
$(INSTALL_PROGRAM) -D tools/livecd-iso-to-disk.sh $(DESTDIR)/usr/bin/livecd-iso-to-disk
$(INSTALL_PROGRAM) -D tools/mayflower $(DESTDIR)/usr/lib/livecd-creator/mayflower
$(INSTALL_DATA) -D AUTHORS $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/AUTHORS
diff --git a/tools/image-creator b/tools/image-creator
new file mode 100755
index 0000000..2603f9d
--- /dev/null
+++ b/tools/image-creator
@@ -0,0 +1,83 @@
+#!/usr/bin/python -tt
+#
+# image-creator: Create an ext3 system image
+#
+# Copyright 2007, Red Hat Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Library General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+import os
+import sys
+import shutil
+import optparse
+
+import imgcreate
+
+class ImageCreator(imgcreate.LoopImageCreator):
+ def _stage_final_image(self):
+ self._resparse()
+ shutil.move(self._image, self._outdir + "/" + self.name + ".img")
+
+def parse_options(args):
+ parser = optparse.OptionParser(usage = "%prog --config=<kickstart> [options]")
+
+ def parse_kickstart(option, opt, kscfg, parser):
+ try:
+ ks = imgcreate.read_kickstart(kscfg)
+ except imgcreate.CreatorError, e:
+ raise optparse.OptionValueError(str(e))
+ setattr(parser.values, option.dest, (kscfg, ks))
+
+ parser.add_option("-c", "--config", type = "string", dest = "ks",
+ action = "callback", callback = parse_kickstart,
+ help = "Path to kickstart config file")
+ parser.add_option("-n", "--name", type="string", dest="name",
+ help="Image name and filesystem label")
+
+ (options, args) = parser.parse_args()
+
+ if options.ks is None or len(args) != 0:
+ parser.print_usage()
+ sys.exit(1)
+
+ return options
+
+def main():
+ options = parse_options(sys.argv[1:])
+
+ if os.geteuid () != 0:
+ print >> sys.stderr, "You must run image-creator as root"
+ return 1
+
+ (kscfg, ks) = (options.ks[0], options.ks[1])
+
+ if options.name:
+ name = options.name
+ else:
+ name = imgcreate.build_name(kscfg)
+
+ creator = ImageCreator(ks, name)
+
+ try:
+ creator.create()
+ except imgcreate.CreatorError, e:
+ print >> sys.stderr, "Error creating image : %s" % e
+ return 1
+ finally:
+ creator.cleanup()
+
+ return 0
+
+if __name__ == "__main__":
+ sys.exit(main())
--
1.5.3.3
16 years, 4 months
two errors in liveinst
by Sebastian Vahl
Just to say this first: Due to the current openssl rebuild marathon this
problems maybe already fixed. My used anaconda version was
anaconda-11.4.0.4-2. The second thing is that I'm trying this from one of my
first version of my kde4-livecd tries. So maybe the error lies elsewhere.
But to go ahead: I get this error message when starting "liveinst" directly
from command line:
FATAL: Module md not found.
/usr/sbin/liveinst: line 40: /usr/sbin/swapoff: No such file or directory
No volume groups found
Probing for video card: nVidia Corporation NV17 [GeForce4 MX 440]
19:12:12 Starting graphical installation...
Traceback (most recent call last):
File "/usr/sbin/anaconda", line 861, in <module>
anaconda.id = instClass.installDataClass(anaconda, extraModules,
anaconda.methodstr, opts.display_mode, anaconda.backend)
File "/usr/lib/anaconda/instdata.py", line 314, in __init__
self.reset()
File "/usr/lib/anaconda/instdata.py", line 90, in reset
stat.S_ISBLK(os.stat("/dev/live")[stat.ST_MODE]):
NameError: global name 'stat' is not defined
If I should open a bug for that, please let me know.
Sebastian
16 years, 4 months
config/livecd-fedora-kde.ks
by Sebastian Vahl
config/livecd-fedora-kde.ks | 68 ++++++++++++++++++++++----------------------
1 files changed, 35 insertions(+), 33 deletions(-)
New commits:
commit 40ca06a845e8c81d3d29ee30f85a5a7f2d3c7af9
Author: Sebastian Vahl <fedora(a)deadbabylon.de>
Date: Sat Dec 8 02:42:01 2007 +0100
Initial kde4 version: Don't expect this kickstart to be working. It's an initial version and also some packages are right building atm. Hopefully this will work when kde-3.97.0 is hitting rawhide (and the openssl rebuild marathon is finished then)
diff --git a/config/livecd-fedora-kde.ks b/config/livecd-fedora-kde.ks
index b004648..e514efd 100644
--- a/config/livecd-fedora-kde.ks
+++ b/config/livecd-fedora-kde.ks
@@ -1,45 +1,45 @@
%include livecd-fedora-base-desktop.ks
+# WARNING: Don't expect this kickstart to be working. It's an initial version
+# and also some packages are right building atm. KDE4 is also actual in a state
+# where it needs some polishing.
+# I you've ignored this warnings please fill bug report at:
+# https://bugzilla.redhat.com
+# http://bugs.kde.org/
+
%packages
-@kde-desktop
+# don't use @kde-desktop for the moment (until it's complete kde4)
+# KDE 4
+kdelibs
+kdebase
+kdebase-workspace
+kdebase-runtime
kdegames
-k3b
+kdeutils
+kdeaccessibility
+kdeadmin
+kdenetwork
+kdegraphics
+kde-settings
+kde-settings-kdm
+kde-settings-pulseaudio
+
+# KDE 3
+amarok
koffice-kword
koffice-kspread
koffice-kpresenter
koffice-filters
twinkle
-filelight
-krusader
-
-
-# if it is enough space include koffice-krita (~40 megs)
-koffice-krita
-
-# some other extra packages
-gnupg
-synaptics
-hal-cups-utils
-nss-mdns
-
-# ignore comps.xml and make sure these packages are included
-kpowersave
-rhgb
-man-pages
-smolt-firstboot
+k3b
knetworkmanager
+konversation
+digikam
+filelight
+kaffeine
+ktorrent
-#some changes that we don't want...
--specspo
--scribus
--kdeaddons
--kdemultimedia-extras
--kdeartwork-extras
--kmymoney2
--basket
--speedcrunch
--autofs
-
+# FIXME/TODO: recheck the removals here
# try to remove some packages from livecd-fedora-base-desktop.ks
-scim*
-gdm
@@ -52,18 +52,16 @@ knetworkmanager
-pygtkglext
-python-devel
-libchewing
-
-# workaround for the moment (requirements of hplip)
-python-imaging
-python-reportlab
+-firefox
%end
%post
+
# create /etc/sysconfig/desktop (needed for installation)
cat > /etc/sysconfig/desktop <<EOF
DESKTOP="KDE"
-DISPLAYMANAGER="KDE"
+DISPLAYMANAGER="KDM"
EOF
# add initscript
@@ -88,11 +86,6 @@ sed -i 's/#AutoLoginUser=fred/AutoLoginUser=fedora/' /etc/kde/kdm/kdmrc
sed -i 's/#PreselectUser=Default/PreselectUser=Default/' /etc/kde/kdm/kdmrc
sed -i 's/#DefaultUser=johndoe/DefaultUser=fedora/' /etc/kde/kdm/kdmrc
-# disable screensaver
-sed -i 's/Enabled=true/Enabled=false/' /usr/share/kde-settings/kde-profile/default/share/config/kdesktoprc
-
-# workaround to put liveinst on desktop and in menu
-sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
-EOF
+# FIXME/TODO: Where to put liveinst.desktop since there is no "normal" desktop anymore?
%end
16 years, 4 months
issue with mkisofs
by CTuska@startek.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello all,
I got my LiveCD to build them I mounted the ISO and did the unsquashfs. Everything was ok but now I am trying to rebuild the CD and I am getting a error with mkisofs.
I used this site as my guide http://www.kevinslonka.com/index.php?section=1&blog=137&page=1
Here is my error and command I used.
[root@localhost live]# mkisofs -o /var/live/newcd.iso -b /var/live/isofiles/isolinux/isolinux.bin \ -c /var/live/isofiles/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table \ -J -r -hide-rr-moved -V Training /var/live/isofiles
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage: No such file or directory. Invalid node - ' -c'.
[root@localhost live]#
Any Help would be great..
Chris
-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 2.6.3
Charset: iso-8859-1
wsBVAwUBR1ca4ndSn114QiNOAQhQAQgAv4HvkUlR3EZE6OeGLqn0ZbkJToZMggp4
TGNm52Zzo/hL89a3JpfwF37nhehdnIPulpIb56Vz+iMBkIdnyG9ReuYtY9eK7E5h
HuhrHGh+fhFuBgsGd7ZdW37pA7URLHYADdQgrV8lucwb77YCYl1XjSrbBL0q1eEX
6yDvKm4egfG9dsdBn7mkxXf7FsUTHKUgLuoJlbwdgO7s8nKQZUMDk8dYHZTvte91
ud9BA7PBx720lEVNGkjXyr+pCAjyV8ZVXOGKJpP7yxaIkOuBItSkSCc6fSEObdA+
LYgMPUc35DZeQy//s7pUeID35/8XJ9KBskEj6QKIhxASWEyhgk7xSw==
=nbBe
-----END PGP SIGNATURE-----
16 years, 4 months
Image /isolinux/splash.jpg
by Thiago Braga Santana
Hello to everyone's list.
I need to learn how to customize the image /isolinux/splash.jpg of LiveCd.
Can anyone tell me?
Very grateful.
Thiago Santana
16 years, 4 months