kernel 'make rpm', kadischi and kernel version disconnect
by Ted Toth
I'm building a kernel rpm which then I'm trying to build a livecd with for
testing purposes. In my case I've edited the kernel Makefile setting
EXTRAVERSION = _1.2185.2.1_FC6.lspp.21, I used '_' instead of '-' because of
rpmbuild doesn't like '-'. I build the rpm and then copy
kernel-2.6.16_1.2185.2.1_FC6.lspp.21-1.rpm to /tmp/fc5/Fedora/RPMS and run
createrepo followed by 'kadischi /tmp/fc5 /tmp/fedora-live.iso'. When
kadischi get to the point of running initrd the following happens:
making initrd image
/tmp/livecd-build_no28/system/lib/modules/2.6.16_1.2185.2.1_FC6.lspp.21-1 is
not a directory.
*** Fatal error: /usr/local/share/kadischi/livecd-mkinitrd.sh returned
non zero (256) exit code. Aborting execution.
There is a
/tmp/livecd-build_no28/system/lib/modules/2.6.16_1.2185.2.1_FC6.lspp.21
directory. I see that there is a disconnect related to the release number
(-1) between the kernel rpm build and kadischi but it's unclear where to fix
this in the kernel build or kadischi.
17 years, 11 months
kadischi: KeyError
by Sheshadrivasan B
So far, I build the linux-2.6.11 kernel with the squashfs patch, and have generated the
kernel-2.6.11-2.i386.rpm
package. I have installed this on my system and have
boot the system with the corresponding kernel.
(The Core 4 shipped kernel is 2.6.11-1.1369_FC4).
Next I created the Fedora Core 4 repository. I have removed the
kernel-2.6.11-1.1369_FC4.i586.rpm
kernel-2.6.11-1.1369_FC4.i686.rpm (both shipped in Core 4 dist)
from the RPMS directory and replaced the same with the
squashfs supported kernel
kernel-2.6.11-2.i386.rpm
I built.
This repository lives in /home/core4
[shesh@localhost core4]$ pwd
/home/core4
[shesh@localhost core4]$ ls
boot.iso diskboot.img Fedora RELEASE-NOTES
The rpm
squashfs-tools-2.2r2-2.2.1
is installed on the system (I built it myself from the tarball)
Questions:
1) Is there anything else missing ?
2) The diskboot.img, does that needs to be changed too ?
and finally
3) I then tried making the sample minimal-livecd as below and encountered "KeyError"
Any help is appreciated. Thanks in advance.
-Shesh.
[root@localhost kadischi]# kadischi /home/core4/ /home/shesh/LIVEcd.iso --kickstart=/home/shesh/ws/kadischi/ks_examples/minimal-livecd.cfg
Starting kadischi...
Parsing command line arguments
Checking UID
Using buildstamp file /etc/kadischi/buildstamp.
Product path set to Fedora.
Now we are going to try to validate your repository (for now, only http, ftp and local repositories can be checked)
Path /home/core4 exists. OK
Path /home/core4/Fedora exists. OK
Path /home/core4/Fedora/base exists. OK
Path /home/core4/Fedora/RPMS exists. OK
Repository seems to be OK.
Checking required packages
Looking for config file
Loading config file options
*** running anaconda ***
* Display mode = g
* Method = nfs://home/core4
Probing for video card: VESA driver (generic)
Probing for monitor type: Samsung SyncMaster 753DF(X)/703DF(X)/783DF(X)/CD173A(T)
Probing for mouse type: Skipped mouse probe.
Starting graphical installation...
* anaconda floppy device fd0
* Running kickstart %pre script(s)
* All kickstart %pre script(s) have been run
* moving (1) to step partitionobjinit
* error munging swap label: len() of unsized object
* error munging swap label: [Errno 22] Invalid argument
* error reading jfs label on /tmp/disk: [Errno 22] Invalid argument
* moving (1) to step partition
* moving (1) to step partitiondone
* moving (1) to step networkdevicecheck
* moving (1) to step readcomps
* Using file:///home/core4/Fedora/base/comps.xml
* base references package cryptsetup which doesn't exist
* base references package openCryptoki which doesn't exist
* base references package prctl which doesn't exist
* legacy-software-development references package compat-libstdc++-devel which doesn't exist
* legacy-software-development references package compat-gcc-c++ which doesn't exist
* legacy-software-development references package compat-gcc-295 which doesn't exist
* legacy-software-development references package compat-gcc-296 which doesn't exist
* legacy-software-development references package compat-gcc which doesn't exist
* legacy-software-development references package compat-libstdc++ which doesn't exist
* legacy-software-development references package compat-libstdc++-295 which doesn't exist
* legacy-software-development references package compat-libstdc++-32 which doesn't exist
* legacy-software-development references package compat-gcc-c++-32 which doesn't exist
* compat-arch-support references package libtool-libs which doesn't exist
* compat-arch-support references package openCryptoki which doesn't exist
* compat-arch-support references package libf2c which doesn't exist
* legacy-software-support references package compat-pwdb which doesn't exist
* java-development references package jakarta-commons-daemon which doesn't exist
* java-development references package beecrypt-java which doesn't exist
* java-development references package jakarta-commons-daemon-javadoc which doesn't exist
* gnome-desktop references package gnome-backgrounds which doesn't exist
* core references package yaboot which doesn't exist
* core references package iprutils which doesn't exist
* core references package elilo which doesn't exist
* core references package s390utils which doesn't exist
* core references package ppc64-utils which doesn't exist
* japanese-support references package jcode.pl which doesn't exist
* mail-server references package perl-Cyrus which doesn't exist
* miscallvars references package anaconda-product which doesn't exist
* miscallvars references package lilo which doesn't exist
* kannada-support references package openoffice.org-langpack-kn_IN which doesn't exist
* web-server references package struts11-webapps-tomcat5 which doesn't exist
* web-server references package httpd-suexec which doesn't exist
* base-x references package desktop-backgrounds-extra which doesn't exist
* development-tools references package gcc-ppc32 which doesn't exist
* development-tools references package pfmon which doesn't exist
* development-tools references package gcc-c++-ppc32 which doesn't exist
* Running kickstart %traceback script(s)
Traceback (most recent call last):
File "/usr/src/build/573771-i386/install//usr/lib/anaconda/gui.py", line 873, in nextClicked
self.dispatch.gotoNext()
File "/usr/src/build/573771-i386/install//usr/lib/anaconda/dispatch.py", line 174, in gotoNext
self.moveStep()
File "/usr/src/build/573771-i386/install//usr/lib/anaconda/dispatch.py", line 242, in moveStep
rc = apply(func, self.bindArgs(args))
File "/usr/src/build/573771-i386/install//usr/lib/anaconda/packages.py", line 207, in readPackages
id.instClass.setGroupSelection(grpset, intf)
File "/usr/src/build/573771-i386/install//usr/lib/anaconda/kickstart.py", line 1559, in setGroupSelection
pkgs = grpset.hdrlist.pkgnames[name]
KeyError: ''
_________________________________________________________________
Join the next generation of Hotmail and you could win the adventure of a lifetime
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
17 years, 11 months
runtime error when kadischi runs anaconda
by Ted Toth
I've built a local repository as per instructions and have run
createrepo. When Kadischi runs anaconda with a root path, in this case
it appears to be /tmp/livecd-build_no13/system, only the kernel rpm has
gets installed so there isn't a /tmp/livecd-build_no13/system/usr dir
and consequently this command fails. Why aren't all of the rpms being
installed?
14:47:23 CRITICAL: Traceback (most recent call last):
File "/usr/lib/anaconda/gui.py", line 1253, in handleRenderCallback
self.currentWindow.renderCallback()
File "/usr/lib/anaconda/iw/progress_gui.py", line 245, in
renderCallback
self.intf.icw.nextClicked()
File "/usr/lib/anaconda/gui.py", line 951, in nextClicked
self.dispatch.gotoNext()
File "/usr/lib/anaconda/dispatch.py", line 146, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 217, in moveStep
rc = apply(func, self.bindArgs(args))
File "/usr/lib/anaconda/backend.py", line 173, in writeConfiguration
id.write(instPath)
File "/usr/lib/anaconda/instdata.py", line 150, in write
self.rootPassword.write (instPath, useMD5)
File "/usr/lib/anaconda/users.py", line 103, in write
setPassword(instPath, "root", pure, useMD5)
File "/usr/lib/anaconda/users.py", line 137, in setPassword
stdout = '/dev/null', stderr = None)
File "/usr/lib/anaconda/iutil.py", line 34, in execWithRedirect
raise RuntimeError, root + command + " can not be run"
RuntimeError: /tmp/livecd-build_no13/system/usr/sbin/usermod can not be
run
17 years, 11 months
missing kernel package?
by Ted Toth
I followed all of the wiki instructions to create a local repository and
then ran kadischi /tmp/fc5 /tmp/fedora-live.iso
but anaconda fails with the following error.
Starting kadischi...
Parsing command line arguments
Checking UID
Using buildstamp file /etc/kadischi/buildstamp.
Product path set to Fedora.
Now we are going to try to validate your repository (for now, only http, ftp
and local repositories can be checked)
Path /tmp/fc5 exists. OK
Path /tmp/fc5/Fedora exists. OK
Path /tmp/fc5/Fedora/base exists. OK
Path /tmp/fc5/Fedora/RPMS exists. OK
Repository seems to be OK.
Checking required packages
Looking for config file
Loading config file options
*** running anaconda ***
Probing for video card: ATI Technologies Inc Unknown device 7149
Probing for monitor type: Unknown monitor
Starting graphical installation...
Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz
Traceback (most recent call last):
File "/usr/lib/anaconda/gui.py", line 951, in nextClicked
self.dispatch.gotoNext()
File "/usr/lib/anaconda/dispatch.py", line 146, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 217, in moveStep
rc = apply(func, self.bindArgs(args))
File "/usr/lib/anaconda/backend.py", line 153, in doPostSelection
return backend.doPostSelection(intf, id, instPath, dir)
File "/usr/lib/anaconda/yuminstall.py", line 779, in doPostSelection
self.selectBestKernel()
File "/usr/lib/anaconda/yuminstall.py", line 700, in selectBestKernel
kpkg = getBestKernelByArch("kernel", self.ayum)
File "/usr/lib/anaconda/yuminstall.py", line 691, in getBestKernelByArch
pkgs = ayum.pkgSack.returnNewestByName(pkgname)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 437, in
returnNewestByName
raise mdErrors.PackageSackError, 'No Package Matching %s' % name
PackageSackError: No Package Matching kernel
17 years, 11 months
kadischi/squashfs (Fedora core 4) question
by Sheshadrivasan B
I am need of building a live CD for a custom Fedora installation.
This live CD needs to be based on linux kernel version 2.6.15.
However, the machine that I use is a Fedora Core 4 which is using
2.6-11-1. How do I go about this ?
After having read the kadischi documentation, it appears
I need to be running a 2.6.15 kernel with the squashfs patch
to the kernel. Am I right ? If so, I see that we do not
have the squashfs patch for 2.6.15, how do we proceed ?
Shesh.
_________________________________________________________________
Join the next generation of Hotmail and you could win the adventure of a lifetime
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
17 years, 11 months
Problem in Live CD
by Jaswinder Singh
Hi All
When system is booted from live CD then it stops at init3.
I think it may be problem with h/w dependency and when other system is
booted from it then it shows this problem.
Can anybody Please tell me about that and how to solve this problem.
Thanks in advance
Jassy
17 years, 11 months
Kadischi - kickstart cfg files
by J. Hartline
Hi.
Looking over the minimal-livecd.cfg that is currently provided with Kadischi
it seems Anaconda tries to install some things probably not considered
exactly minimal.
This is 303 packages or so and I've come up with a small list I'll put
below.
This brings the package count down to 251 saving a bit of space in a
totally minimilistic install.
Have a look:
%packages
# Packages to exclude for minimal package set
- atk
- bind
- bind-libs
- bind-utils
- bluez-libs
- bluez-pin
- bluez-utils
- caching-nameserver
- cairo
- cyrus-sasl-plain
- expat
- freeglut
- GConf2
- htmlview
- irda-utils
- libglade2
- libICE
- libIDL
- libSM
- libX11
- libXau
- libXcursor
- libXdmcp
- libXext
- libXfixes
- libXft
- libXi
- libXinerama
- libXmu
- libXrandr
- libXrender
- libXt
- libXxf86vm
- mesa-libGL
- mesa-libGLU
- NetworkManager
- numactl
- ORBit2
# End package set
I'm curious if anyone has any suggestions or objections to this being
introduced
into the current minimal-livecd.cfg provided, as I was also looking at
creating
a standard-livecd.cfg and standard-livedvd.cfg which would accompany
storage sizes
for both CD and DVD media. Is this a good idea?
Any ideas about package sets for those?
Any packages to add or remove?
Having the minimal-livecd.cfg, standard-livecd.cfg and
standard-livedvd.cfg would
round out provided kickstart cfg files I think for Kadischi.
J. Hartline
17 years, 11 months
Re: [Fedora-livecd-list] Kadischi - kickstart cfg files
by Eugene Teo
Hi,
Jasper O'neal Hartline wrote:
> I'm curious if anyone has any suggestions or objections to this being
> introduced into the current minimal-livecd.cfg provided, as I was also
> looking at creating a standard-livecd.cfg and standard-livedvd.cfg which
> would accompany storage sizes for both CD and DVD media. Is this a good
> idea?
Yes, it's a splendid idea. We should start having more example kickstart
files in ks_examples/. The more useful ones are those with a list of
packages that can fit into a 650/700MB CD-R/RW and DVD. Other example
kickstart files that we should have are country- or language-specific
ones so that other users from non-english speaking countries can benefit
from this project too.
The problem with creating kickstart files for CDs is that there are so
many packages to choose from, but we can't have everything. And each time
we use Kadischi to create an ISO, if the list of packages we selected doesn't
fit into a CD-R/RW, then we have to do it all over again, which can be
pretty painful.
I have attached a generic kickstart file that I wrote today. It fits into
a 650/700MB CD-R/RW nicely. With a slight modification, we can use it as
a standard-livecd.cfg for ks_examples/.
Eugene
--
eteo redhat.com ph: +65 6490 4142 http://www.kernel.org/~eugeneteo
gpg fingerprint: 47B9 90F6 AE4A 9C51 37E0 D6E1 EA84 C6A2 58DF 8823
# Kickstart file automatically generated by anaconda.
# File: ks.cfg_FC5-LiveCD-generic
# Built by: Eugene Teo <eteo(a)redhat.com>
# Date: 20060507
###############################################################################
# FC5 kickstart for Kadischi (Generic)
# Eugene Teo
#
# Feel free to make any changes to my kickstart file. Kadischi was able to
# create a 641MB ISO based on this. If you make any improvements to this file,
# do email me the changes so that i can learn from you too.
#
# Usage:
# kadischi /path_to_repo /path_to_iso --kickstart=ks.cfg_FC5-LiveCD-generic
# kadischi http://path_to_repo /path_to_iso --kickstart=ks.cfg_FC5-LiveCD-generic
#
###############################################################################
#--------------------------------------------------------------#
lang en_US.UTF-8
keyboard us
#timezone --utc Asia/Singapore
timezone --utc GMT
# Default root password: redhat
rootpw --iscrypted $1$PvvvUg73$zWYeWG2HFaMCgO9B/RE6B.
#--------------------------------------------------------------#
install
xconfig --driver "vesa" --videoram 65472 --resolution 800x600 --depth 16 --startxonboot
monitor --hsync 31.5-37.9 --vsync 50-70
network --device eth0 --bootproto dhcp
network --device eth1 --onboot no --bootproto dhcp
network --device sit0 --onboot no --bootproto dhcp
network --device tun0 --onboot no --bootproto dhcp
network --device vmnet1 --onboot no --bootproto dhcp
network --device vmnet8 --onboot no --bootproto dhcp
firewall --enabled --port=22:tcp
#selinux --disabled
selinux --enforcing
authconfig --enableshadow --enablemd5
#--------------------------------------------------------------#
bootloader --location=none
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#--------------------------------------------------------------#
%packages
@admin-tools
@base
@base-x
@core
@gnome-desktop
@graphical-internet
@office
@printing
@sound-and-video
#@korean-support
#@chinese-support
#@thai-support
bsf
comps-extras
cracklib-dicts
gnome-mime-data
iso-codes
rmt
tzdata
%post
useradd redhat
# Default user password: redhat
usermod -p '$1$PvvvUg73$zWYeWG2HFaMCgO9B/RE6B.' redhat
echo -e "[security]\nDisallowTCP=false\n\n[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=redhat\n\n[greeter]\n" > /etc/gdm/custom.conf
17 years, 11 months
Google Summer Of Code - project idea
by Jan Wrobel
Hi,
I would like to take part in this year Google Summer of Code and I
have an idea of a project that maybe interesting for you. Please let
me know what do you think about it.
I am thinking about a program that will try to get network
configuration from windows registry at LiveCD startup. It can check
out if there are any windows partitions, try to mount them read only
and look if there is registry file at some standard locations. Reading
registry can be painful but there are some open source programs that
can read data from this file so I guess it is doable. I think that it
would be very useful feature. A lot of LiveCD users are Linux newbies
who have Windows on a drive, not every one has DHCP configured and
getting network running is a hard task for a beginner. I think it is
important to make this first contact with Linux as smooth as possible.
What do you think about this idea? Is it something useful for Fedora
project? Are there chances that I will find a mentor if if my
application is good enough or should I apply for a different project?
Best regards,
Jan Wrobel
17 years, 12 months