Re: Is there solution for rebooting automatically?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It works fine. Many thanks!


----
Best,
-Redevif





From: "Herr S. Buecken" <buecken@xxxxxxxxxxxxxxxxx>
Reply-To: kickstart-list@xxxxxxxxxx
To: kickstart-list@xxxxxxxxxx
Subject: Re: Is there solution for rebooting automatically?
Date: Wed, 23 Oct 2002 08:05:27 +0200

It have to be placed before the
%packages


Just write the keyword "reboot" between your "authconfig --enableshadow
--enablemd5 " and your "# Set timezone "


Sascha

sp redevif wrote:

> Thanks all. But I'm still in failure. Yes, I put the reboot line in
> the end of the ks.cfg after the %post and insert two newlines, one
> before the reboot and the other behind the reboot. It can not work.
> Where should the reboot be put? I'm confusing.
>
> I'm using RH73 and IA with SCSI.
>
> The following is my ks.cfg, please help me find the error. Thanks a
lot!
>
> # Kickstart config file.
>
> # Install, not upgrade
> install
>
> # Set the language to US English
> lang en_US
> langsupport --default en_US.iso885915 en_US.iso885915
> keyboard us
>
> # Set the mouse
> mouse genericps/2 --device psaux --emulthree
>
> # Skip x windows configuration
> skipx
>
> # Set the network.
> network --device eth0 --bootproto dhcp --nameserver 10.10.1.11
>
> # Set the install location.
> # Here install from FTP Server 10.10.211.200
> url --url ftp://visitor:visitor@xxxxxxxxxxxxx/pub/redhat73
>
> # Set the root password
> rootpw --iscrypted $1$.w1YFaBg$y7Py5J24c/8J1XhIDfM6s.
>
> # Set the firewall
> firewall --disabled
>
> # Set the password encrytion arithmetic
> authconfig --enableshadow --enablemd5
>
> # Set timezone
> timezone Asia/Shanghai
>
> # Set the boot loader -- Lilo
> bootloader --useLilo
>
> # The following is the partition information you requested
> # Note that any partitions you deleted are not expressed
> # here so unless you clear all partitions first, this is
> # not guaranteed to work
>
> # 7G for / and 800M for swap.
> clearpart --linux
> part / --fstype ext2 --size=7000
> part swap --size=800
> part /home --fstype ext2 --size=1 --grow
>
> # Listing what packages you want to install. Default is Everything.
> %packages
> #@ Printing Support
> @ Classic X Window System
> #@ X Window System
> @ GNOME
> #@ Sound and Multimedia Support
> @ Network Support
> #@ Dialup Support
> @ Messaging and Web Tools
> #@ Everything
>
> %pre
> # add comment to /etc/motd
> # echo "Kickstart-installed Red Hat Linux 7.3 `/bin/date`" > /etc/motd
>
> %post
> /usr/sbin/useradd guest
> chfn -f 'guest' guest
> /usr/sbin/usermod guest guest
>
> /sbin/reboot
>
>
>
>
> ----
> Best,
> -Redevif
>
>
>
>
>
>> From: Mike McLean <mikem@xxxxxxxxxx>
>> Reply-To: kickstart-list@xxxxxxxxxx
>> To: kickstart-list@xxxxxxxxxx
>> Subject: Re: Is there solution for rebooting automatically?
>> Date: Mon, 21 Oct 2002 12:20:20 -0400
>>
>> reboot works for me.
>>
>> You said "at the end" of your ks.cfg. Perhaps you have accidentally
>
> placed the
>
>> reboot line in the %packages section or the %post section where it
will
>
> not be
>
>> interpreted as a kickstart command?
>>
>> Also, what version/arch are you using?
>>
>> Lv Redevif wrote:
>> > I'm wondering how can make the machine reboot automatically after
>> > installation. Now it should need press <ENTER> although I add
"reboot"
>> > in the end of my ks.cfg file. Seems it doesn't work.
>> >
>> > Many thanks!
>> >
>> > ----
>> > Best,
>> > -Redevif
>> >
>> >
>> >
>> >
>> > _________________________________________________________________
>> > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>> >
>> >
>> > _______________________________________________
>> > Kickstart-list mailing list
>> > Kickstart-list@xxxxxxxxxx
>> > https://listman.redhat.com/mailman/listinfo/kickstart-list
>>
>>
>>
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list@xxxxxxxxxx
>> https://listman.redhat.com/mailman/listinfo/kickstart-list
>
>
>
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/kickstart-list
>
>





_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux