Hi Spiros,

On 2010年06月03日 17:01, Spiros Georgaras wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> στις 02/06/2010 05:50 μμ, O/H Steven Shiau έγραψε:
>    
>> Hi Spiros,
>>
>>      
> Hi Steven,
>
>    
>> On 2010年06月01日 04:13, Spiros Georgaras wrote:
>> ÃĹ 31/05/2010 05:24 ¼¼, O/H Steven Shiau ­³Á±Èµ:
>>
>>      
>>>>>>> So now I have another question: how can i use ocs_prerun boot 
>>>>>>> parameter(s)
>>>>>>> when booting to ram? As far as i can tell, i have to "rebuild"
>>>>>>> filesystem.squashfs to achieve that... Is this true? Is there another 
>>>>>>> way to
>>>>>>> do that?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                
>>>>> Sorry, I do not understand. Why you need to rebuild filesystem.squashfs
>>>>> when you want to use ocs_prerun boot parameters?
>>>>>
>>>>> Steven.
>>>>>
>>>>>            
>> ok, let me make myself clear
>>
>> I have a script I want to be executed using ocs_prerun, let's call it
>> myscript. So I burn a modified clonezilla ISO, adding myscript to the root of
>> this ISO. Then, when I boot normally, i pass
>> "ocs_prerun=/live/image/myscript" to the command line and myscript is 
>> executed
>> successfully
>>
>> When booting to RAM, /live/image/myscript does not exist (since /live/image
>> does not list the contents of the CD), so my customization is useless/void
>>
>>      
>>> OK, in this case, that's true.
>>> Does your client access network? If so, maybe you can put the
>>> customization script on http, tftp or ftp server, and use:
>>> ocs_prerun="wget http://.../myscript";
>>> ocs_prerun1="bash PATH_TO_SCRIPT/myscript"
>>> in the boot parameters.
>>>        
> This is great!
> I never thought I could combine these parameters this way!
>    
:)
>    
>> I see no other way but to rebuild filesystem.squashfs and add myscript to the
>> / (root) of the "virtual" filesystem. Then "ocs_prerun=/myscript" would 
>> always
>> be found
>>
>>      
>>> Yes, to rebuild the filesystem.squashfs is another choice. You can refer
>>> to this:
>>> http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/81_add_prog_in_filesystem-squashfs.faq#81_add_prog_in_filesystem-squashfs.faq
>>>        
>>      
> yes that's what i have already done  (more or less) :)
> BTW, I have managed to build a working filesystem.squashfs with squashfs-tools
> 4.0-8, on sidux (debian sid)
>    
Yes. The Clonezilla live which we released now is based on Debian Sid or 
Squeeze. The kernel now uses version 4 of squashfs. Therefore that's why 
you have to use squashfs-tools 4.

Steven.
>    
>>> Hope this helps.
>>>        
>>      
>>> Steven.
>>>
>>>        
>
> - -- 
> Regards
>    Spiros
>
> - --
> gpg key URL: http://members.hellug.gr/sng/gpg-all.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAkwHb2sACgkQGnm65yv0bno/cwD7BbH19moWT8wLIjHzeBzMUVJc
> lZhCiy8HCGuv1xHuuHUA/3e3ej8AWKMvFfwQT5O+lZg/trWlkEPtLBI71qPpGAhk
> =mL1Y
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> 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


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to