Bonjour, j’ai créé une image debian grace à live-build, tout s’est très bien passé mais les problèmes arrivent lorsque je rajoute un script dans /config/chroot_local-hooks/
J’ai remarqué que je faisais un lb config --clean à la génération de l’iso, ce qui supprime l’arborescence de mon dossier /config/, j’ai donc supprimé cette ligne mais du coup GRUB ne s’installe plus … Je ne comprend pas comment le fait d’enlever l’option clean peut influer sur l’installation de GRUB.
Voici le script que j’utilise pour générer mon iso.
[code]#!/bin/bash
if [ $EUID -ne 0 ]; then
echo "Le script doit être lancé en root ou avec sudo:"
echo "sudo ‘$0’"
exit 1
fi
if [ -f /usr/bin/live-build ]; then
echo "live-build [installé]"
else
apt-get install -y live-build
fi
mkdir Debian-Live
cd Debian-Live
rm -rf config
lb clean
lb config
–language “fr”
–architecture “i386”
–linux-flavours “486”
–binary-images “iso-hybrid”
–distribution “squeeze”
–binary-filesystem “fat16”
–archive-areas “main”
–bootappend-install “locales=fr_FR.UTF-8”
–bootappend-live “locales=fr_FR.UTF-8 keyboard-layouts=fr”
–packages “hunspell-fr aspell-fr iceweasel-l10n-fr openoffice.org-l10n-fr manpages-fr gedit-plugins openjdk-6-jre openjdk-6-jre-headless icedtea6-plugin samba iftop cifs-utils openssh-server bash-completion network-manager-gnome vim”
–packages-lists “standard-x11”
–tasks “standard gnome-desktop desktop”
–debian-installer “live”
–clean
–syslinux-timeout 20
–interactive “false” \
touch ./config/chroot_local-hooks/post-build.sh
echo “#!/bin/sh
apt-file update
cd /tmp && wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.28+squeeze1_all.deb && dpkg -i firmware-linux-nonfree_0.28+squeeze1_all.deb && rm -Rf /tmp/firmware*
cd /tmp && wget http://mirror.xivo.fr/fai/xivo-migration/xivo_install_skaro.sh
bash xivo_install_skaro.sh” > ./config/chroot_local-hooks/post-build.sh
lb build[/code]
Voyez vous quelques chose que j’aurais oublié ?
Merci d’avance pour vos réponse.