[Novalug] Scripting question

James Swanson swanson.james@gmail.com
Thu Feb 16 12:07:38 EST 2012


When I run the script as the user, it works.  But if it's automatic, it
stops after downloading the ISO.  Am I missing something?

Jim

On Thu, Feb 16, 2012 at 8:09 AM, James Swanson <swanson.james@gmail.com>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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20120216/bbd2729e/attachment.htm>


More information about the Novalug mailing list