Re: install_and_reboot target for kernel's...

From: Garance A Drosihn (drosih_at_rpi.edu)
Date: 08/04/04

  • Next message: John-Mark Gurney: "Re: install_and_reboot target for kernel's..."
    Date: Wed, 4 Aug 2004 15:05:38 -0400
    To: John-Mark Gurney <gurney_j@resnet.uoregon.edu>, freebsd-arch@freebsd.org
    
    

    At 11:23 AM -0700 8/4/04, John-Mark Gurney wrote:
    >I propose to add a install_and_reboot (if someone has a better name I'm
    >open to suggestions). It installs the kernel, and then using nextboot
    >will set to boot the freshly installed kernel, and then reboot the machine.
    >
    >I normally use it as:
    >make install_and_reboot KERNEL=kernel.test
    >
    >Patch follows:
    >Index: conf/kern.post.mk
    >===================================================================
    >RCS file: /usr/src/FreeBSD/src/sys/conf/kern.post.mk,v
    >retrieving revision 1.68
    >diff -u -r1.68 kern.post.mk
    >--- conf/kern.post.mk 27 Jun 2004 23:03:43 -0000 1.68
    >+++ conf/kern.post.mk 4 Aug 2004 17:14:55 -0000
    >@@ -29,6 +29,9 @@
    >
    > .ORDER: kernel-install modules-install
    >
    >+install_and_reboot: install
    >+ nextboot -k ${KERNEL} && shutdown -r now
    >+

    Hardly seems worth it. Create a script "iark":
         #!/bin/sh
         cd /usr/src && make installkernel KERNEL=$1 && nextboot -k
    ${KERNEL} && reboot

    (aside: I remember someone telling me that it makes more sense
    to just type 'reboot' than 'shutdown -r now'. If you do add
    the target, don't you want it to depend on "installkernel" and
    not "install"?)

    This way you end up with even less typing:
         iark kernel.test

    I'd actually spruce up the script a bit more than that, if it
    were me... Just my 2 cents.

    -- 
    Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
    Senior Systems Programmer           or  gad@freebsd.org
    Rensselaer Polytechnic Institute    or  drosih@rpi.edu
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: John-Mark Gurney: "Re: install_and_reboot target for kernel's..."

    Relevant Pages

    • Re: Update breaks kernel, AMD AM2, 32 bit install, Testing
      ... Downloads and installs maybe 600 items, ... Says it is installing the same kernel version blah blah. ... no reboot prompted so I carried on doing some minor web ... Without heading down the road of APIC problems, try booting a live cd, ...
      (Debian-User)
    • Re: nvidia or ati ?
      ... > The kernel is installed, ... > It does not load the new kernel until a reboot occurs so if you watch ... that builds and installs the kernel module, ...
      (Fedora)
    • NVIDIA kernel module cant be built with dkms - says kernel source is not installed
      ... I'm trying the Freshrpms NVIDIA driver package - it installs ... without incident, but, when I reboot, it gets to dkms and says it ... can't build the module because kernel source is not installed, ...
      (Fedora)
    • Re: nvidia or ati ?
      ... >> The kernel is installed, ... >> It does not load the new kernel until a reboot occurs so if you watch ... >that builds and installs the kernel module, ...
      (Fedora)
    • Re:SOLVVED vinum crashes the Box... WRONG POSTING
      ... vinum crashes the Box by using more then ten disks on ... > With this configuration vinum crashes the Machine with this Message: ... > I'm going to enable the kernel debugger now... ... >> while devfs rules works for those, but they vanish on reboot. ...
      (freebsd-stable)