clearpart -all warning
Markus Eyrich
me at byteaction.de
Thu Apr 12 13:02:45 UTC 2012
Well, as far as i can see this script doesn't even work in a normal
shell, bash or sh...
The last line says "read -p "Proceed with install? " install done
clear chvt1 #%end
Now put the whole stuff into a script, the last line (read...) whould
look like this:
read -p "Proceed with install? " install
done (closing while)
clear
chvt1
%end
But still, this doesn't work, you can type what you want, even "yes" and
you won't get out of it, since you now read what is into "install" but
have to action for it. So i made:
read -p "Proceed with install? " install
if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then exit
fi
done
clear
chvt1
%end
That works. Maybe i'm stupid or something, but the original posted
script is not functional ?!?
The complete thing is like that:
%pre
#!/bin/sh
exec < /dev/tty6 > /dev/tty6 2>&1
chvt 6
install="no"
while [ "$install" != "yes" ] || [ "$install" != "YES" ]; do
clear
echo
echo
'********************************************************************************'
echo '* W A R N I N
G *'
echo
'*
*'
echo '* This process will install a completely new operating
system! *'
echo
'*
*'
echo '* Do you wish to continue? (Type the entire word "yes" to
proceed.) *'
echo
'*
*'
echo
'********************************************************************************'
echo
read -p "Process with install? " install
if [ "$install" = "yes" ] || [ "$install" = "YES" ]; then
exit
fi
done
chvt 1
%end
Am 12.04.2012 13:30, schrieb Patrick Lists:
> On 04/12/2012 09:53 AM, Markus Eyrich wrote:
>> Does this still work with CentOS 6 and Anaconda ? I can't get it to
>> work. Tried the very exact same code below and Anaconda just goes over
>> it and starts installing... Do i need to do anything more in the
>> kickstart file? Does it need to be in interactive or text mode or
>> something ?!
>
> I have not tried it on CentOS 6. I was just quoting from Chip's
> kickstart presentation. I always use text mode in my kickstart files.
> Have you tried that? Maybe Chip Shabazian can shed some light on this?
>
> Regards,
> Patrick
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
> Diese E-Mail wurde von BytStorMail archiviert. Zum Ändern des Status:
> http://217.195.2.162/bytstor/app/action/SearchStoredMailAction/template/storedMail%2CIndexMail.vm?redirect_template=storedMail%2CIndexMail.vm&mailid=1045717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20120412/097c3eae/attachment.htm>
More information about the Kickstart-list
mailing list