Re: How to reboot in %post?

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

 



Hi
If you specify a 'reboot' in kickstart, that would make it work at the end of the kickstart process.... 

Doing it 'the way of pain', you can do:

%post
#Flush buffers
sync;sync
#Reboot 'now'
echo b > /proc/sysrq-trigger


Regards
Pablo



----- Mensaje original -----
> De: "whitivery" <co55-sy1t@xxxxxxxxxxxxxxx>
> Para: Kickstart-list@xxxxxxxxxx
> Enviados: Viernes, 1 de Julio 2011 9:12:09
> Asunto: How to reboot in %post?
> 
> Usually I don't want to reboot a built unit - I want to see the
> final %post results and scroll back to check it.
> 
> But under some conditions I would like to reboot.  However, just
> doing "reboot" doesn't work in %post (nor does shutdown -r now),
> complains about no /dev/initctl.  In the Alt-F2 console I was
> able to reboot via "mkfifo -m666 /dev/initctl; reboot" but that
> doesn't work in the real %post.  I thought about somehow trying
> to stuff Ctrl-Alt-Del into the keyboard buffer but don't know how
> to do that.
> 
> How can I cause a reboot in %post?  This is for CentOS 5.6 at the
> moment; would also want it for 5.5, Fedora 14, and others.
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list
> 

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


[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