[Novalug] Scripting question

Paul W. Frields stickster@gmail.com
Thu Feb 16 08:21:29 EST 2012


Please, please, please report a bug about this!
http://bugzilla.redhat.com/bugzilla

Paul

On Thu, Feb 16, 2012 at 08:09:08AM -0500, James Swanson wrote:
> Unfortunately, that option doesn't work.  I did get it working after some
> digging.  I replaced the sudo livecd-iso-to-disk  with "yes '' | sudo
> livecd-iso-to-disk and it's working now.  This cold is kicking my behind, I
> hate working in a fog like this.  Thanks everyone!
> 
> Jim
> 
> On Thu, Feb 16, 2012 at 8:04 AM, Paul W. Frields <stickster@gmail.com>wrote:
> 
> > 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@gmail.com> wrote:
> > > > what about using expect?
> > > >
> > > >
> > > > On Thu, Feb 16, 2012 at 6:46 AM, James Swanson <
> > swanson.james@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
> > _______________________________________________
> > Novalug mailing list
> > Novalug@calypso.tux.org
> > http://calypso.tux.org/mailman/listinfo/novalug
> >

> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug


-- 
Paul W. Frields                                http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://redhat.com/   -  -  -  -   http://pfrields.fedorapeople.org/
    The open source story continues to grow: http://opensource.com



More information about the Novalug mailing list