Monday, 20 May 2013

How to modify the LiveUSB to execute a script upon boot

How to modify the LiveUSB to execute a script upon boot

I have created a live usb image (ubuntu desktop) using live usb creator. Now what I am required to do is to boot through the LiveUSB and when it finishes booting it will perform some operation such as wipe all the data in all the hard disk. How can I modify the LiveUSB so that it can executes some start up script?
So far I have done is to extract the initrd0.img file and updated the init script there. But it doesn't seem to have any effect. I guess I am doing something wrong.
I would appreciate a lot if someone can tell me whether this is the right procedure (whether I am in the right track) or there is other procedure.
Thanks

No comments:

Post a Comment