I image many computers with Ubuntu. I use Clonezilla and have a script that does things like setting the hostname on first boot. I'd like this script to ask me a question. How can this be achieved? Upstart is concurrent and doesn't show any particular terminal so I'm not sure how this could be done.

If you're wondering why, I'd like for it to ask me what school I'm at which would run a specific script for that school's customizations. This way I can have one company image that runs everywhere I work in.

1 Answer 1


I've never used Clonezilla but looking at the boot parameters here I would say you just need to make sure that ocs_live_batch="no" so that your script is interactive and then you should be able to use something like this in to read input from the terminal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.