Re: install_and_reboot target for kernel's...

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 08/04/04

  • Next message: John Baldwin: "Re: again question about "IRQ 2 problem""
    To: freebsd-arch@FreeBSD.org, John-Mark Gurney <gurney_j@resnet.uoregon.edu>
    Date: Wed, 4 Aug 2004 17:11:33 -0400
    
    

    On Wednesday 04 August 2004 04:05 pm, John-Mark Gurney wrote:
    > Garance A Drosihn wrote this message on Wed, Aug 04, 2004 at 15:05 -0400:
    > > 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.
    >
    > a) not everyone knows about nextboot, putting it in the makefile and
    > documenting it will allow more people to know about it

    That I debate. :) Having a bikeshed on arch@ might let more people know about
    it, but documenting things doesn't always make them more widely known.
    There's a reason they are called FAQs. Also, the intended audience for this
    target is mostly developers, and they probably already know about nextboot.

    > b) there are lots of doesn't seem worth it scripts that exist in the
    > base system.. we don't require people to do:
    > make installkernel installmodules instead of make install do we?
    >
    > the reason it depends upon install and not just installkernel is that
    > we want the modules installed too...

    The confusion there is that he is using installkernel from /usr/src/Makefile
    which does a full kernel install including modules if needed. I'm not sure
    that this target is really a good idea given reboot vs. shutdown as well as
    using nextboot options (I would probably want to use nextboot -o "-s" -k test
    most of the time since I usually like to boot test kernels into single user
    so I can do simple testing before I unleash it on multiuser) means that by
    the time you add tweaks and hooks for the various different options you
    really haven't saved much typing.

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    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 Baldwin: "Re: again question about "IRQ 2 problem""

    Relevant Pages

    • Re: New Computer
      ... Another reason I hate Windows! ... Now my recent experience kind of ticked me off because I had installed my version of Word XP onto my original desktop when I purchased it, then put it on the other family computer for the girls and their school work and then finally onto my laptop. ... Eventually I purchased a new desktop and had to reinstall it and I had to call Microsoft to get a new activation code. ... Six months later, my husband is home from his surgery and I gave him the laptop to play with - eventually ended up with a virus that I just could not get completely rid of so I reformatted the harddrive and had to reinstall, again no issues, but I did have to call Microsoft also this time to install. ...
      (sci.med.transcription)
    • Re: Wow... Windows... Looking for definitive answer
      ... laptop with Windows XP Pro. ... I want to install IIS. ... is Home Edition, you will not be able to install IIS. ... in this thread for some reason) is the above. ...
      (microsoft.public.windowsxp.setup_deployment)
    • Re: Wow... Windows... Looking for definitive answer
      ... laptop with Windows XP Pro. ... I want to install IIS. ... is Home Edition, you will not be able to install IIS. ... in this thread for some reason) is the above. ...
      (microsoft.public.windowsxp.setup_deployment)
    • Re: Wow... Windows... Looking for definitive answer
      ... laptop with Windows XP Pro. ... I want to install IIS. ... is Home Edition, you will not be able to install IIS. ... in this thread for some reason) is the above. ...
      (microsoft.public.windowsxp.setup_deployment)
    • Re: WARNING:DO NOT UPGRADE TO CORE 4
      ... >> X, but an upgrade might. ... > Then you've created a totally unique situation where the reason it works ... The reason for this - although this is not strictly relevant - ... but the simple fact is that a clean install does not work - ...
      (Fedora)