je veut crée un live usb fedora 7 apartir d'une image iso sur mon dd
donc j'ai monté l'image, ( car ma connexion est de faible débit 🙁 ), dans le repertoir /var/www/html/live pour qu'elle soit accessible avec le serveur httpd
alors j'ai modifié le fichier ks comme suit:
Rq: les lignes changées sont en rouge
[---]
lang en_US.UTF-8
keyboard fr
timezone US/Eastern
auth --useshadow --enablemd5
selinux --enforcing
firewall --disabled
repo --name=d7 --baseurl=http://127.0.0.1/live
repo --name=d7 --baseurl=http://mirrors.ircam.fr/pub/fedora/linux/releases/7/Everything/i386/os
repo --name=everything --baseurl=http://mirrors.ircam.fr/pub/fedora/linux/releases/7/Everything/i386/os/
repo --name=updates --baseurl=http://mirrors.ircam.fr/pub/fedora/linux/updates/7/i386/
repo --name=livna --baseurl=http://livna-dl.reloumirrors.net/fedora/7/i386/
xconfig --startxonboot
services --enabled=NetworkManager,dhcdbd --disabled=network,sshd
%packages
# basic desktop packages
@graphical-internet
@graphics
@sound-and-video
@gnome-desktop
@base-x
@GaMeS
@base
@coRe
@admin-tools
@dial-up
@hardware-support
@printing
syslinux
kernel
scim*
-scim-devel
-scim-doc
-scim-qtimm
-scim-bridge-qt
-scim-skk
-scim-tomoe
-scim-tables-chinese
-scim-fcitx*
-scim-tables-additional
-scim-skk
m17n-lib
m17n-db
#m17n-db-*
fonts-*
# dictionaries are big
-aspell-*
-m17n-db-*
-man-pages-*
# gimp help is huge
-gimp-help
# lose the compat stuff
-compat*
# space sucks
-gnome-user-docs
-specspo
-esc
-samba-client
-a2ps
-vino
-redhat-lsb
-sox
-tomboy
# smartcards won't really work on the livecd. and we _need_ space
-coolkey
-ccid
# duplicate functionality
-pinfo
-vorbis-tools
-wget
# scanning takes quite a bit of space :/
-xsane
-xsane-gimp
# while hplip requires pyqt, it has to go
-hplip
# added games
#monkey-bubble
#ppracer
# we don't include @office so that we don't get OOo. but some nice bits
abiword
gnumeric
evince
#gnome-blog
#planner
# lots of people want...
gparted
ntfs-3g
ntfsprogs
kdewebdev
firefox
wine
mplayer
kplayer
gedit
# livecd bits to set up the livecd and be able to install
anaconda
anaconda-runtime
# make sure debuginfo doesn't end up on the live image
-*debuginfo
%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 rw /dev/live /mnt/live
fi
# configure X
exists system-config-display --noui --reconfig --set-depth=24
# unmute sound card
exists alsaunmute 0 2> /dev/null
# add fedora user with no passwd
useradd -c "Fedora Live" fedora
passwd -d fedora > /dev/null
# disable screensaver locking
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null
# set up timed auto-login for after 60 seconds
sed -i -e 's/[daemon]/[daemon]\nTimedLoginEnable=true\nTimedLogin=fedora\nTimedLoginDelay=60/' /etc/gdm/custom.conf
if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/fedora/.face
chown fedora:fedora /home/fedora/.face
# TODO: would be nice to get e-d-s to pick this one up too... but how?
fi
# turn off firstboot for livecd boots
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
# don't start yum-updatesd for livecd boots
chkconfig --level 345 yum-updatesd off
# don't start cron/at as they tend to spawn things which are
# disk intensive that are painful on a live image
chkconfig --level 345 crond off
chkconfig --level 345 atd off
chkconfig --level 345 anacron off
chkconfig --level 345 readahead_early off
chkconfig --level 345 readahead_later off
# 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
# save a little bit of space at least...
rm -f /boot/initrd*
[---]
et voilà le message d'erreur:
livecd-creator --config=/home/khaled/khaled.ks --fslabel=Fedora-7-info-plus-Live-USB
mke2fs 1.39 (29-May-2006)
Étiquette de système de fichiers=Fedora-7-info-pl
Type de système d'exploitation : Linux
Taille de bloc=4096 (log=2)
Taille de fragment=4096 (log=2)
524288 i-noeuds, 1048576 blocs
10485 blocs (1.00%) réservés pour le super utilisateur
Premier bloc de données=0
Nombre maximum de blocs du système de fichiers=1073741824
32 groupes de blocs
32768 blocs par groupe, 32768 fragments par groupe
16384 i-noeuds par groupe
Superblocs de secours stockés sur les blocs :
32768, 98304, 163840, 229376, 294912, 819200, 884736
Écriture des tables d'i-noeuds : complété
Création du journal (32768 blocs) : complété
Écriture des superblocs et de l'information de comptabilité du système de
fichiers : complété
Le système de fichiers sera automatiquement vérifié tous les 28 montages ou
après 180 jours, selon la première éventualité. Utiliser tune2fs -c ou -i
pour écraser la valeur.
tune2fs 1.39 (29-May-2006)
Initialisation du nombre maximal de montages à -1
Initialisation de l'intervalle de vérification à 0 secondes
No Repositories Available to Set Up
Traceback (most recent call last):
File "/usr/bin/livecd-creator", line 1088, in <module>
sys.exit(main())
File "/usr/bin/livecd-creator", line 1069, in main
target.install()
File "/usr/bin/livecd-creator", line 871, in install
self.installPackages(self.packages, self.epackages, self.groups)
File "/usr/bin/livecd-creator", line 480, in installPackages
map(lambda grp: self.ayum.selectGroup(grp[0], grp[1]), groupList)
File "/usr/bin/livecd-creator", line 480, in <lambda>
map(lambda grp: self.ayum.selectGroup(grp[0], grp[1]), groupList)
File "/usr/bin/livecd-creator", line 238, in selectGroup
yum.YumBase.selectGroup(self, grp)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 1424, in selectGroup
if not self.comps.has_group(grpid):
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 517, in <lambda>
comps = property(fget=lambda self: self._getGroups(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 481, in _getGroups
groupfile = repo.getGroups()
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 799, in getGroups
file = self.retrieveMD('group')
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 770, in retrieveMD
cache=self.http_caching == 'all')
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 568, in _getFile
raise Errors.RepoError, "failure: %s from %s: %s" % (relative, self.id, e)
yum.Errors.RepoError: failure: repodata/comps-f7.xml from d7: [Errno 256] No more mirrors to try.
[---]
et merci d'avance