Re: Remote upgrade of 4.X-5.3-Stable

From: Clifton Royston (cliftonr_at_lava.net)
Date: 02/25/05

  • Next message: Ashwin Chandra: "sched_4bsd.c Quantum change"
    Date: Thu, 24 Feb 2005 14:34:00 -1000
    To: freebsd-hackers@freebsd.org
    
    

    On Thu, Feb 24, 2005 at 12:01:08PM +0000, freebsd-hackers-request@freebsd.org wrote:
    > Date: Wed, 23 Feb 2005 17:06:02 +0000
    > From: Wouter van Rooij <aentgood@gmail.com>
    > Subject: Remote upgrade of 4.X-5.3-Stable
    > To: freebsd-hackers@freebsd.org
    > Message-ID: <7603e5d8050223090633360cc1@mail.gmail.com>
    > Content-Type: text/plain; charset=US-ASCII
    >
    > You did a make buildworld?
    > You just have to boot in single user mode and run mergemaster -p and
    > mergemaster.

      This doesn't work for the remote update case without physical console
    access, which he's asking about. Once the machine comes up in single
    user mode, sshd is not running and there's no way to get into it.

      Sorry to belabor the obvious.

      I believe that what's really needed here is to replicate some magic
    that is done on the first boot after installing FreeBSD on a system.
    IIRC, there's a special one-time invocation of an rc file - I think
    after a quick check of /etc/rc that it's rc.early that I'm thinking of.

      You can put commands in here which are run very early on following
    the first automatic boot into multi-user of the system, after all
    virtual drives are "assembled" but before filesystems are checked and
    mounted. If all steps of your upgrade script succeed, you can then at
    the end have the rc.early file rename itself (so it won't run on the
    next boot) sync the root file system, and reboot again.

      Obviously you want to test this very carefully, because in a remote
    environment you will probably get just one shot at having it work
    correctly; but hopefully this puts you on a workable path.
      -- Clifton

    -- 
              Clifton Royston  --  cliftonr@tikitechnologies.com 
             Tiki Technologies Lead Programmer/Software Architect
    "I'm gonna tell my son to grow up pretty as the grass is green
    And whip-smart as the English Channel's wide..."
                                                       -- 'Whip-Smart', Liz Phair
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Ashwin Chandra: "sched_4bsd.c Quantum change"

    Relevant Pages

    • Re: cant load specfs program terminated
      ... >>1) Can some one shed more light on whats the reason for this error and ... >>the system wouldnt boot from either of the boot devices? ... > user mode, and apply the patches. ... mirrors and apply the patches in single user mode. ...
      (comp.unix.solaris)
    • Re: Help! New iMac Core Duo freezes!
      ... You could also try starting up in single user mode: ... and then see if you can use "disktool" to eject the disk from the ... I appreciate all the paths but neither the safe mood boot nor the single ...
      (comp.sys.mac.system)
    • Re: Mergemaster on a distant system
      ... > It is not necessary to reboot or go into single user mode in order to ... > run mergemaster, and I doubt the handbook says it is necessary. ... The biggest risk is that the new kernel doesn't boot up. ...
      (freebsd-stable)
    • Re: newbie question
      ... >> to circumvent a root password. ... Just boot into single user mode, ... > user mode WITHOUT a password?! ... When installing RHL it asks you to enter a password for GRUB (the boot ...
      (comp.unix.programmer)
    • Passwordless root access
      ... Found out how to boot a machine in runlevel 1 or single ... At grub press "e" then highlight the boot option ... machine boots up in single user mode and never asks for a password. ...
      (comp.os.linux.misc)