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
>>>
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to