Re: [Clonezilla-live] Files under /live/image?
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
From: Spiros G. <sn...@he...> - 2010-06-03 09:02:17
|
-----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) >> 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----- |