Hi Spiros,

On 2010年06月01日 04:13, Spiros Georgaras wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> στις 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.
> 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

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)
>
> iF4EAREIAAYFAkwEGHsACgkQGnm65yv0bnprDgD/fhOZu7h/MFlbhSgOZI4wVWUF
> V1+lHXVTTa8xfBAn9owA/0K4aqONFHSScae9HgNt6U3/Fa2cjs4nzRn3TeaDFkX6
> =UK6F
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Clonezilla-live mailing list
> [email protected]
> 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


------------------------------------------------------------------------------

_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to