[DragonFlyBSD - Bug #3197] DragonFly upgrades

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Jul 29 03:42:12 PDT 2019

Issue #3197 has been updated by tse.

You're right, some people will want HEAD, and seeing @yellowrabbit do a commit bisect, a one liner upgrade to named commit would also be nice

I wanted to avoid required flags, so people don't have to re-look them up, but an optional flag like [ -r HEAD | COMMIT | RELEASE ] would make the script more automatable, so maybe something like:

/usr/upgrade [-r release] [configuration]
Configuration is "X86_64_GENERIC"
Select a release:
  [1]  DragonFly_RELEASE_5_6
  [2]  DragonFly_RELEASE_5_4
  [_]  Enter a specific commit like HEAD or abcdef123

If people don't pass a [ -r RELEASE ], then the script will give the release options to select from

Would something like that be what you're after?

> Kitchen sink scripts that handle maintenance are good but they tend to grow and then collapse under their weight.


This script partly replicates the functionality in /usr/Makefile.  Should it totally replicate the functionality (dports-create, dports-download), so the Makefile can be removed?  Or should that functionality be retained elsewhere -- it's not something I've used before

Bug #3197: DragonFly upgrades

* Author: tse
* Status: New
* Priority: Normal
* Assignee: 
* Category: Feature request
* Target version: 

I realize this is quite a simple script, and possibly misses useful features (?). Originally posted to @users, but mailing list line-wraping didn't keep the script fully intact, so copy/paste/test wouldn't of worked

Also, the response on DragonFly Digest encouraged me re-post it here

I've tested it on new installs of 4.8, 5.2, and 5.4, and with installs previously upgraded with `make src-create/src-create-shallow`

It takes this:
> cd /usr
> make src-create
> ...
> make buildworld
> make buildkernel
> ...
> make upgrade

To this:
> /usr/upgrade
Upgrading DragonFly BSD

For more information see:
  `man build`      `man config`
  /usr/src/README  /usr/src/UPDATING

It is possible to run this script without root privileges
Usage:  upgrade [configuration]
Configuration is "X86_64_GENERIC"

Latest releases:
  [1]  DragonFly_RELEASE_5_6
  [2]  DragonFly_RELEASE_5_4
  [3]  DragonFly_RELEASE_5_2
  [4]  DragonFly_RELEASE_5_0
  [5]  DragonFly_RELEASE_4_8

Select [1-5]:

upgrade (2.4 KB)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list