Hi Morgan, I have implemented a better mechanism for this kind of interactive mode in testing Clonezilla live 1.2.8-35. You should be able to use the boot parameters to make that, and no shell script is required. It should work for your first post: append initrd=clonezilla/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_prerun="sshfs -o nonempty -p 22 clone@x.x.x.x:/images /home/partimag" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -cs -p true restoreparts ask_user sda1" ocs_live_extra_param="" ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" ocs_live_batch="no" ocs_lang="fr_FR.UTF-8" ocs_numlk="on" vga=791 nosplash fetch=http://x.x.x.x/pub/iso/clonezilla/filesystem.squashfs
Could you please give it a try and let me know the results? Thanks in advance. Steven. On 2011/3/25 上午 05:09, LEFIEUX Morgan wrote: > Hello, > > thanks a lot for your help and for this tips. It works as expected using > a script, thanks ! > > Morgan > > Le 24/03/2011 03:35, Steven Shiau a écrit : >> I think I have found the issue. I believe the problem is ocs_prerun* is >> run during init, which is in non-interactive mode, so there is no way we >> can input the password... >> I will think about how to implement a better mechanism in the future >> release. For the time being, is that possible you can use a NFS server, >> or use a script to do that? E.g. >> The content of your script (myscript.sh): >> ============== >> #!/bin/bash >> sshfs -o nonempty -p 22 clone@x.x.x.x:/images /home/partimag >> ocs-sr -g auto -e1 auto -e2 -c -r -j2 -cs -p true restoreparts ask_user >> sda1" >> ============== >> and the config file: >> append initrd=clonezilla/initrd.img boot=live live-config noswap >> nolocales edd=on nomodeset ocs_prerun1="dhclient -v eth0" >> ocs_prerun2="sleep 10" ocs_prerun3="wget -P /tmp/ >> http://$server/myscript.sh" ocs_live_run="bash /tmp/myscript.sh" >> ocs_live_extra_param="" >> ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" >> ocs_live_batch="no" ocs_lang="fr_FR.UTF-8" ocs_numlk="on" vga=791 >> nosplash fetch=http://x.x.x.x/pub/iso/clonezilla/filesystem.squashfs >> >> >> Steven. >> >> >> On 2011/3/23 下午 11:53, LEFIEUX Morgan wrote: >>> Thanks for your reply but i've already tested this without success. The >>> network is well set up but the sshfs part still produce the same error >>> without asking the password. >>> >>> This is what i've tried: >>> >>> append initrd=clonezilla/initrd.img boot=live live-config noswap >>> nolocales edd=on nomodeset ocs_prerun1="dhclient -v eth0" >>> ocs_prerun2="sleep 10" ocs_prerun3="sshfs -o nonempty -p 22 >>> clone@x.x.x.x:/images /home/partimag" ocs_live_run="ocs-sr -g auto -e1 >>> auto -e2 -c -r -j2 -cs -p true restoreparts ask_user sda1" >>> ocs_live_extra_param="" >>> ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" >>> ocs_live_batch="no" ocs_lang="fr_FR.UTF-8" ocs_numlk="on" vga=791 >>> nosplash fetch=http://x.x.x.x/pub/iso/clonezilla/filesystem.squashfs >>> >>> if you have any other idea. >>> >>> Thanks a lot. >>> >>> Le 23/03/2011 15:43, Steven Shiau a écrit : >>>> Hi, >>>> Before you run sshfs, I believe you'd better to let network startup. >>>> Therefore it's recommended to make it like: >>>> ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sshfs >>>> -o nonempty -p 22 clone@x.x.x.x:/images /home/partimag" >>>> >>>> Steven. >>>> >>>> On 03/18/2011 04:30 AM, LEFIEUX Morgan wrote: >>>>> Hi, >>>>> >>>>> i'm trying to use these livecd boot parameters to automate the >>>>> restoration of partitions from a SSH server: >>>>> >>>>> append initrd=clonezilla/initrd.img boot=live live-config noswap >>>>> nolocales edd=on nomodeset ocs_prerun="sshfs -o nonempty -p 22 >>>>> clone@x.x.x.x:/images /home/partimag" ocs_live_run="ocs-sr -g auto -e1 >>>>> auto -e2 -c -r -j2 -cs -p true restoreparts ask_user sda1" >>>>> ocs_live_extra_param="" >>>>> ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" >>>>> ocs_live_batch="no" ocs_lang="fr_FR.UTF-8" ocs_numlk="on" vga=791 >>>>> nosplash fetch=http://x.x.x.x/pub/iso/clonezilla/filesystem.squashfs >>>>> >>>>> clonezilla starts but doesn't ask for the password when trying to mount >>>>> the remote directory with SSHFS and then fails. It only prints >>>>> "Connection reset by peer" >>>>> If i do all the steps normally using the GUI dialog, it works. >>>>> >>>>> Is there a mean to let the user type the password when using >>>>> ocs_prerun= ? >>>>> >>>>> Thanks >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> Colocation vs. Managed Hosting >>>>> A question and answer guide to determining the best fit >>>>> for your organization - today and in the future. >>>>> http://p.sf.net/sfu/internap-sfd2d >>>>> _______________________________________________ >>>>> Clonezilla-live mailing list >>>>> Clonezilla-live@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>>> >> -- Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw Public Key Server PGP Key ID: 1024D/9762755A Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Clonezilla-live mailing list Clonezilla-live@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clonezilla-live