Issue #3197 has been updated by tse. File upgrade2 added
Yup, lets leave the Makefile > Let's go even simpler - if a branch isn't named, as either RELEASE, HEAD, or > (Git commit ID), assume that it's an update of whatever branch is currently > in place. No menus or choices needed. For myself personally, I stay on the latest stable release, so I want upgrades to always change the branch 5.4 -> 5.6 -> ... I had basically finished some changes when I got your message (+ a long break for another test install). They give us the latest stable branch with `/usr/upgrade -r 1`. And the prior stable branch with '-r 2'. For the bleeding edge, people can get that with `/usr/upgrade -r 4`, or a specific commit with `/usr/upgrade -r abcdef123`. Maybe the bleeding edge should be '-r 0', but I currently placed it lower so people don't assume it's the first and best option.... Let me at least upload that script (upgrade2) I agree that people on the bleeding edge only ever want to upgrade their current branch so then a no-branch-change default would be best; but for stable branch users it would just give them a long wait that looks like an upgrade and tells them to reboot etc Currently if '-r' is specified then there are no menus or choices, which I think is a nice balance. Maybe '-r 4' should move to '-r 0' ---------------------------------------- Bug #3197: DragonFly upgrades http://bugs.dragonflybsd.org/issues/3197#change-13766 * Author: tse * Status: New * Priority: Normal * Assignee: * Category: Feature request * Target version: ---------------------------------------- Hiya, 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 http://www.dragonflybsd.org/docs/handbook/ 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]: ------ ---Files-------------------------------- upgrade (2.4 KB) upgrade2 (2.96 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