[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problemes avec autoinstall



Le Wed 21/05/2003, gaetan cottron disait
> xavier renaut wrote:
> 
> >Salut,
> >
> >J'ai quelques problemes avec "autoinstall".
> >
> >
> >apres avoir loadé le kernel, il marque :
> >
> >
> > 
> >
> >>loading configuration from boot floppy ... zcat : couldn't write
> >>done.
> >>   
> >>
> >
> >
> >il n'y a pas d'infos de debug,
> >et je ne parle pas courament le python :
> >
> >
> >       if os.path.exists("/bootfloppy/conf.tgz"):
> >           runcmd("/bin/sh -c 'cd /etc; zcat /bootfloppy/conf.tgz | tar -x 
> >           -f -'")
> >       elif os.path.isdir("/bootfloppy/conf"):
> >           runcmd("cp /bootfloppy/conf/* /etc")
> >       else:
> >           print "\nERROR: Configuration files not found!  Cannot 
> >           continue."
> >           killsystem()
> > 
> >
> Ce n'est sans doute pas ça mais ça peut être un début. Ta ligne :
> 
> runcmd("/bin/sh -c 'cd /etc; zcat /bootfloppy/conf.tgz | tar -x -f -'")     
> runcmd("/bin/sh -c 'cd /etc; zcat /bootfloppy/conf.tgz | tar -xzf'")
> 
> du fait que ton fichier soit en ".tgz" il faut également l'option "z" 
> pour le dézipper.

Non, puis qu'il est passé par zcat avant de passer par tar.

-- 
Erwan



Reply to: