Bonjour,<br>Cela fait quelques jours que je galère sur ca. J'explique : <br>L'objectif
c'est de créer une distribution à base Ubuntu 8.04 pour les bornes avec les
écrans tactiles dans les supers et hypers marchés.<br>
J'ai procédé ainsi ;<br>- Installation et configuration d'Ubuntu sur la borne<br>- à partir d'un script créer un iso en utilisant les configs du système<br>- à partir d'un script créer le CDROM d'installation.<br>
Tout s'est bien passé sauf que le script d'installation ne passe pas l'étape de partitionnement du disque.<br>Le
script d'installation s'exécute correctement quand je le lance dans un
shell mais pendant l'installation, il ne detecte pas le disque dur.<br>
Voici la partie qui traite le partionnement :<br><br><span style="color: rgb(0, 0, 153);">echo "Initialisation de l'installateur ..."</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">umount $INS_DIR</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">modprobe ide-disk</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DEV_DIR="/dev"</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">DISK_DEV="/dev/hda"</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">OK="false"</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">while [ "$OK" = "false" ]</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">do</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> $DIALOG_BIN --title "$TITLE"
--backtitle "$BACKTITLE" --ok-label "Valider" --cancel-label "Ne pas
modifier" --inputbox "Veuillez indiquer le device du disque dur (eg
/dev/hdb, /dev/hdc, /dev/sda, /dev/sdb, /dev/discs/disc0 ...)" 10 60 ""
2>$TMP_FILE</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> sel=$?</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> DISK_DEV=`cat $TMP_FILE`</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> /sbin/hdparm -d1 $DISK_DEV && test -b $DISK_DEV && OK="true" </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> /sbin/cfdisk -P t $DISK_DEV && test -b $DISK_DEV && OK="true" </span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> sleepIfDebug</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> if [ "$OK" = "false" ]</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
$DIALOG_BIN --title "$TITLE" --backtitle "$BACKTITLE" --msgbox
"Attention ! "$DISK_DEV" n'est pas un device correcte" 10 30</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> fi</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">done</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">$DIALOG_BIN
--title "$TITLE" --backtitle "$BACKTITLE" --yesno "Souhaitez vous faire
un partitionnement manuel (recommendé) ?" 10 30 && AUTO_PART="0"</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">if [ "$AUTO_PART" = "1" ]</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">then</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
test "$DEBUG" = "1" && $DIALOG_BIN --title "$TITLE" --backtitle
"$BACKTITLE" --msgbox "Attention : suppression des anciennes partitions
!" 10 30</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">....</span><br><br>Merci d'avance pour votre coup de main.