[Novalug] Scripting question

Paul W. Frields stickster at gmail.com
Thu Feb 16 08:04:23 EST 2012


Indeed, the livecd-iso-to-disk tool has a --force option, that's
likely what the OP wants.

Paul

On Thu, Feb 16, 2012 at 07:46:37AM -0500, jerry w wrote:
> expect sounds good
> 
> or some commands have a -y
> like yum -y update answering yes
> to whatever prompts
> or -f force
> --noprompt
> or something like that...
> 
> 
> On Thu, Feb 16, 2012 at 7:41 AM, Miles D. Oliver
> <miles.d.oliver at gmail.com> wrote:
> > what about using expect?
> >
> >
> > On Thu, Feb 16, 2012 at 6:46 AM, James Swanson <swanson.james at gmail.com>
> > wrote:
> >>
> >> We're trying to do a mass install of RHEL 6 Client on thin clients.  Due
> >> to space limitations on the clients, we're doing a livecd to flash drive
> >> install.  I have the user on the sudoers list with the "no password" option
> >> invoked.  The problem I'm having is the install script hangs after invoking
> >> livecd-iso-to-disk.  Here's the script
> >>
> >> #!/bin/bash
> >> set $return=\r
> >> wget http://servername/kiosk.iso
> >> sudo livecd-iso-to-disk --format --reset-mbr --noverify
> >> /home/user/kiosk.iso /dev/sda1
> >> echo $return
> >> sudo reboot
> >>
> >> After downloading the iso, it runs the "
> >> sudo livecd-iso-to-disk --format --reset-mbr --noverify
> >> /home/user/kiosk.iso /dev/sda1" command.  Then it stops.  When that command
> >> is run, a Warning is issued and the program asks to press Enter to continue
> >> or ctrl-c to abort.  I can't get it to accept the carriage return.  Any
> >> suggestions?
> >>
> >> Jim


More information about the Novalug mailing list