When anaconda sees partitioning configuration stanzas in the kickstart
file, it takes them on unconditionally. Is there a way to give the
user a chance to override them during installation?
A search over the kickstart doco does not show any useful hints, and
the GUI kickstart configurator doesn't offer any options that seem
suitable. Perhaps there is a smart way to do this that I'm not aware
of? How do liveCDs say "ah, if you let me, I'll autopartition it like
this *whack!*, but if you want to do it yourself, here, have at parted
my friend"?
cheers,
martin
--
martin.langhoff@gmail.com
martin@laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
07-24-2008, 07:02 AM
Steven Moix
Kickstart partitioning stanzas - make optional?
If you remove the configuration options from your kickstart file,
anaconda will stop and ask the user for input, isn't this what you want?
Otherwise create 2 kickstart files on the DVD and chose which one you
use depending on the situation, an easy way of doing that is to edit the
isolinux/isolinux.cfg file on the DVD, with ISO Master for example.
Steven
On Thu, 2008-07-24 at 17:15 +1200, Martin Langhoff wrote:
> When anaconda sees partitioning configuration stanzas in the kickstart
> file, it takes them on unconditionally. Is there a way to give the
> user a chance to override them during installation?
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
07-24-2008, 08:38 AM
yersinia
Kickstart partitioning stanzas - make optional?
In kickstart it is simple ask the user in %pre, generate the file stanza based on user request, and %include in kickstart the generate file stanza
On Thu, Jul 24, 2008 at 9:02 AM, Steven Moix <steven.moix@axianet.ch> wrote:
If you remove the configuration options from your kickstart file,
anaconda will stop and ask the user for input, isn't this what you want?
Otherwise create 2 kickstart files on the DVD and chose which one you
use depending on the situation, an easy way of doing that is to edit the
isolinux/isolinux.cfg file on the DVD, with ISO Master for example.
Steven
On Thu, 2008-07-24 at 17:15 +1200, Martin Langhoff wrote:
> When anaconda sees partitioning configuration stanzas in the kickstart
> file, it takes them on unconditionally. Is there a way to give the
> user a chance to override them during installation?
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
07-24-2008, 10:22 AM
yersinia
Kickstart partitioning stanzas - make optional?
Just a pratical example - i have used it with RHEL5 - , there are many* document on this
************************************************** *******
****** Begin kickstart
************************************************** *******
# Use CDROM installation media
install
cdrom
reboot
monitor --noprobe
#platform=x86, AMD64, o Intel EM64T
# System authorization information
auth* --useshadow* --enablemd5
# System bootloader configuration
bootloader --location=mbr --driveorder=sda* --md5pass=$1$LTpksksk$tgrE3JE2fXT/gqvVMUJwz1
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
......................
******* if [ ."$res" = .'!' ]
******* then
*************** echo_user
*************** echo_user "Starting interactive shell, type 'exit' when done"
*************** sh </dev/tty >/dev/tty 2>&1
*************** # re-do the prompt
*************** ask "$@"
******* else
*************** echo "$res"
******* fi
}
confirm () {
******* res=$(ask "$1 (y/n)" "$2")
******* case "$res" in
******* [yYjJ]*) true ;;
******* *) false ;;
******* esac
}
echo_user "*****************************************"
echo_user "*** EXAMPLE configuration kickstart ***"
echo_user "*****************************************"
echo_user " - Hope for the better ...........****** "
echo_user "** and enjoy**************************** "
echo_user "*****************************************"
echo_user
Interactive="y"
if [ "$Interactive" ]
then
******* while true
******* do
*********** while [ -z "${NAME}"* ]
*********** do
************ echo_user
*************** cat <<EOF >/dev/tty
************************************************** *****
** This is the list of valid hostname : please pick one
** The dns domain is example.com
************************************************** *****
example1
example2
EOF
*************** NAME=$(ask "Hostname (not fqdn qualified)" "$NAME")
*************** case "$NAME" in
*************** ;;
*************** esac
************** done
*************** echo_user
*************** echo_user "--------------------- WARNING -------------------------------"
*************** echo_user "This is your last chance to stop the installation. Continuing"
*************** echo_user "will erase the destination disk and install noninteractively."
*************** echo_user "Answer 'n' if you need to reedit your settings."
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
07-27-2008, 02:42 AM
"Martin Langhoff"
Kickstart partitioning stanzas - make optional?
2008/7/24 yersinia <yersinia.spiros@gmail.com>:
> Just a pratical example - i have used it with RHEL5 - , there are many
Interesting! I will have a play with this - thanks!
cheers.
martin
--
martin.langhoff@gmail.com
martin@laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list