Powered by OpenBSD

CVS log for openbsd/update_openbsd/update_openbsd

[BACK] Up to [local] / openbsd / update_openbsd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.125 / (download) - annotate - [select for diffs], Tue Apr 23 22:38:48 2019 UTC (5 years ago) by andrew
Branch: MAIN
CVS Tags: HEAD
Changes since 1.124: +2 -2 lines
Diff to previous 1.124 (colored)

Only use the first line of /etc/installurl

because I left the old thing on the second line and that broke stuff.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Mar 31 21:10:01 2019 UTC (5 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.123: +4 -1 lines
Diff to previous 1.123 (colored)

Use the mirror from /etc/installurl by default

Idea from Kevin Williams <kevin.williams.edu AT gmail.com> at BSD Pizza Night

Revision 1.123 / (download) - annotate - [select for diffs], Sat Mar 2 01:05:59 2019 UTC (5 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

Fix case in message

Revision 1.122 / (download) - annotate - [select for diffs], Sat Mar 2 01:04:52 2019 UTC (5 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.121: +5 -1 lines
Diff to previous 1.121 (colored)

Run syspatch after updating, unless running snapshots

although I pretty much *only* run snapshots, this will be helpful I'm sure.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Mar 2 01:02:02 2019 UTC (5 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.120: +6 -9 lines
Diff to previous 1.120 (colored)

Actually enable KARL after update

This time I tested it, didn't just hope for the best.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Mar 2 00:34:34 2019 UTC (5 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

Detect "-beta" as following snapshots

Revision 1.119 / (download) - annotate - [select for diffs], Sun Dec 16 23:42:07 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.118: +9 -1 lines
Diff to previous 1.118 (colored)

Enable KARL

Plus clean up old relink directories

Revision 1.118 / (download) - annotate - [select for diffs], Sun Dec 16 21:10:00 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.117: +11 -8 lines
Diff to previous 1.117 (colored)

Better backup of previous kernel when new kernel has different name

After first install, bsd.mp will be installed as bsd and so we need to
back up bsd to obsd not bsd.mp (that doesn't exist yet).

Revision 1.117 / (download) - annotate - [select for diffs], Sun Dec 16 20:57:49 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored)

Improve message

Revision 1.116 / (download) - annotate - [select for diffs], Sun Dec 16 20:55:24 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored)

typo

Revision 1.115 / (download) - annotate - [select for diffs], Sun Dec 16 20:55:03 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.114: +6 -3 lines
Diff to previous 1.114 (colored)

Make EFI_BOOT install atomic

or at least more atomic.

While here, improve another message

Revision 1.114 / (download) - annotate - [select for diffs], Sun Dec 16 20:49:58 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.113: +25 -1 lines
Diff to previous 1.113 (colored)

Add support for /mnt/efi/boot/BOOTAA64.EFI

Not sure it's perfect as I don't actually know the rules, but whatev.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Dec 16 20:31:06 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.112: +4 -2 lines
Diff to previous 1.112 (colored)

Improve messaging of kernel location

Revision 1.112 / (download) - annotate - [select for diffs], Sun Dec 16 20:23:38 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

typo

Revision 1.111 / (download) - annotate - [select for diffs], Sun Dec 16 20:12:16 2018 UTC (5 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.110: +21 -14 lines
Diff to previous 1.110 (colored)

Improve special  kernel location support

On arm64 the kernel doesn't live on the boot device,
so don't try to install it there.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Sep 30 23:31:27 2018 UTC (5 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.109: +6 -3 lines
Diff to previous 1.109 (colored)

Better handling of kernel install path

Revision 1.109 / (download) - annotate - [select for diffs], Thu Feb 8 19:08:01 2018 UTC (6 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored)

Don't try to mount a boot device that doesn't exist

Revision 1.108 / (download) - annotate - [select for diffs], Thu Feb 8 19:07:06 2018 UTC (6 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

Switch default mirror to CDN switcher

There's been a redirect setup that randomly sends you to a different CDN
so we may as well default to using that.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Feb 8 18:46:46 2018 UTC (6 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

Fix path to copying old kernel

We didn't actually chdir to there so can't find it.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Dec 11 03:12:34 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.105: +17 -13 lines
Diff to previous 1.105 (colored)

Switch to MP boot kernel if hw.ncpufound > 1

That way we pick it even if the kernel we think we booted from was SP,
and if we have an MP kernel installed on an SP machine,
we still want to pick the MP kernel.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Dec 11 02:58:57 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.104: +5 -0 lines
Diff to previous 1.104 (colored)

Pick MP kernel if boot kernel is MP

Revision 1.104 / (download) - annotate - [select for diffs], Mon Dec 11 02:53:13 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.103: +38 -19 lines
Diff to previous 1.103 (colored)

Look for BOOT_KERNEL relative to BOOT_DEVICE

Revision 1.103 / (download) - annotate - [select for diffs], Mon Dec 11 02:50:09 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Fix missing $ typo

Revision 1.102 / (download) - annotate - [select for diffs], Mon Dec 11 02:36:03 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

Typo fix

Revision 1.101 / (download) - annotate - [select for diffs], Mon Dec 11 02:34:10 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.100: +14 -15 lines
Diff to previous 1.100 (colored)

Use a reliable interface for mount/umount_root_device

Otherwise it was happening in a subshell and we can't tell whether we mounted it.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Dec 11 01:48:08 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

Fix over greedy grep for msdos on / filesystem

Revision 1.99 / (download) - annotate - [select for diffs], Mon Dec 11 01:45:45 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.98: +38 -12 lines
Diff to previous 1.98 (colored)

Abstract mounting/unmounting boot mount

Revision 1.98 / (download) - annotate - [select for diffs], Mon Dec 11 01:35:44 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.97: +10 -10 lines
Diff to previous 1.97 (colored)

Use boot device, not boot partition wording

Revision 1.97 / (download) - annotate - [select for diffs], Mon Dec 11 00:52:41 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.96: +65 -16 lines
Diff to previous 1.96 (colored)

Allow updating archtectures with separate msdos boot partitions

Like armv7 and octeon.

This does try to put 5 kernels on the partition at once, which
can cause issues if that many won't fit, but not entirely sure
what I want to do about that.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 10 21:20:53 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.95: +4 -8 lines
Diff to previous 1.95 (colored)

Simplify version finding on http mirrors

Revision 1.95 / (download) - annotate - [select for diffs], Sun Dec 10 21:19:11 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.94: +7 -3 lines
Diff to previous 1.94 (colored)

Fix PKG_PATH on machines where arch != machine

Revision 1.94 / (download) - annotate - [select for diffs], Sun Dec 10 21:16:05 2017 UTC (6 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.93: +10 -10 lines
Diff to previous 1.93 (colored)

Fix some trailing whitespace

Revision 1.93 / (download) - annotate - [select for diffs], Tue Nov 28 03:54:31 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

Use machine -a for PKG_PATH

Revision 1.92 / (download) - annotate - [select for diffs], Tue Nov 28 03:29:59 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored)

Default TRUSTED_PKG_PATH to local

Revision 1.91 / (download) - annotate - [select for diffs], Tue Nov 28 03:28:26 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.90: +3 -2 lines
Diff to previous 1.90 (colored)

Move PKG_PATH defaults below version detection

Otherwise we don't notice that we need to set snapshots for snapshot dirs

Revision 1.90 / (download) - annotate - [select for diffs], Tue Nov 28 03:26:54 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

Default mirror to fastly

Revision 1.89 / (download) - annotate - [select for diffs], Tue Nov 28 02:56:20 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.88: +7 -4 lines
Diff to previous 1.88 (colored)

Detect if we are using -current and pick snapshots dir

Revision 1.88 / (download) - annotate - [select for diffs], Tue Nov 28 02:54:34 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

Show the full MIRROR path before downloading

Revision 1.87 / (download) - annotate - [select for diffs], Tue Nov 28 02:52:31 2017 UTC (6 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

Support https protocol

Revision 1.86 / (download) - annotate - [select for diffs], Wed Mar 1 03:22:51 2017 UTC (7 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Remove now unsupported -F and useless -i flags from pkg_add

Revision 1.85 / (download) - annotate - [select for diffs], Wed Mar 1 03:22:01 2017 UTC (7 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Improve look of status lines

Removing leading ===> on some lines

Revision 1.84 / (download) - annotate - [select for diffs], Wed Mar 1 03:20:36 2017 UTC (7 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.83: +15 -11 lines
Diff to previous 1.83 (colored)

Display (and export) TRUSTED_PKG_PATH

Revision 1.83 / (download) - annotate - [select for diffs], Sat Oct 1 20:12:17 2016 UTC (7 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

Stop trying to read /etc/rc.sysmerge if it doesn't exist

Revision 1.82 / (download) - annotate - [select for diffs], Tue May 10 01:58:12 2016 UTC (7 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.81: +5 -1 lines
Diff to previous 1.81 (colored)

Add sysmerge to /etc/rc.sysmerge for first reboot

Revision 1.81 / (download) - annotate - [select for diffs], Fri Nov 27 22:39:14 2015 UTC (8 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Hide expected error if openup doesn't exist

Revision 1.80 / (download) - annotate - [select for diffs], Fri Nov 27 22:38:38 2015 UTC (8 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Correct path to /var/sysmerge/etc.tgz

Revision 1.79 / (download) - annotate - [select for diffs], Tue Nov 3 03:56:53 2015 UTC (8 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Support non-FORCE_DIR updates again

Oops, some refactoring broke that feature it seems.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Oct 11 23:35:14 2015 UTC (8 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

s/sudo/doas/g

Revision 1.77 / (download) - annotate - [select for diffs], Sun May 3 00:11:52 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.76: +2 -4 lines
Diff to previous 1.76 (colored)

use readlink -f for finding symlink destination

Seems handier than using file and jumping through hoops.

Revision 1.76 / (download) - annotate - [select for diffs], Sat May 2 23:27:53 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.75: +9 -3 lines
Diff to previous 1.75 (colored)

If we have "openup" for updates, use that

Thanks mtier!

Revision 1.75 / (download) - annotate - [select for diffs], Sat May 2 23:27:01 2015 UTC (9 years ago) by andrew
Branch: MAIN
Changes since 1.74: +6 -3 lines
Diff to previous 1.74 (colored)

No etc or xetc for OpenBSD >= 5.7

Revision 1.74 / (download) - annotate - [select for diffs], Sat Mar 21 22:50:18 2015 UTC (9 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.73: +1 -0 lines
Diff to previous 1.73 (colored)

Add the ability to force using the SHA256 file instead of SHA256.sig

Because for my home-built releases, I don't have a signify key and
don't really care to distribute one right now.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Mar 21 22:48:25 2015 UTC (9 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

No more sum, instead just use sha256 -c

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jan 18 03:41:33 2015 UTC (9 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.71: +4 -1 lines
Diff to previous 1.71 (colored)

Also update firmware after updating packages

Would be nice if there was a better place, but I don't know of one.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jan 18 03:01:08 2015 UTC (9 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored)

Skip etc+xetc in 5.7 and newer

Because those no longer exist, they are inside baseXX.tgz

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 18 02:59:23 2015 UTC (9 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.69: +11 -1 lines
Diff to previous 1.69 (colored)

More verbosity about existing kernels

More information about what we have and what is being installed.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 18 23:05:49 2014 UTC (9 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Fix accidental leftover dollar sign

Revision 1.68 / (download) - annotate - [select for diffs], Sat Oct 18 22:42:35 2014 UTC (9 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.67: +23 -19 lines
Diff to previous 1.67 (colored)

Simplify sysmerge command-line if we have /usr/share/sysmerge/etc.tgz

Revision 1.67 / (download) - annotate - [select for diffs], Sun May 11 02:40:54 2014 UTC (9 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Correct signify keys and use sha256 to check the sum as "sum" went away

Revision 1.66 / (download) - annotate - [select for diffs], Sat Feb 1 22:07:04 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.65: +18 -16 lines
Diff to previous 1.65 (colored)

Wording update and more frequent warning that things might stop working

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 1 19:13:53 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.64: +24 -31 lines
Diff to previous 1.64 (colored)

Require running update_openbsd as root

It doesn't make sense to use SUDO to run specific bits because it is flaky.
That is, sometimes the sudo timeout will happen before the next step so you
will have to notice and type the password again.  This is often a problem
on machines with slower disks.

It does mean downloading and verifying the sets as root instead of an
normal user but that is not too big of a deal.

It might be worthwhile to wrap the privileged actions in a function and figure
out how to run that entire function as root but that's complication we don't
actually need.

Thanks to Chris Cappuccio for the suggestion.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Feb 1 16:31:51 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.63: +6 -2 lines
Diff to previous 1.63 (colored)

Better error when MIRROR is not set and have no sets

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 23 03:17:06 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Detect installed man page sets properly

Somehow that changed.  I should switch to using the installed sets list in /etc

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 23 02:40:07 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Correct the logic to quit if the sums don't match

Got it backwards.  Not actually sure how I want this whole section to work.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 23 02:30:02 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Don't show error finding signify

Cleaner update to the new snapshot.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 22 19:35:46 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Use the full path to the etc sets for sysmerge

Otherwise signify seems to be unable to find them to verify the signatures.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jan 22 06:44:53 2014 UTC (10 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.58: +21 -5 lines
Diff to previous 1.58 (colored)

Enable hopeful support for signify

This works and falls back if all the pieces aren't there but soon I will remove
the fallback and just always use signify.  If it is on the boot media, then
there is no reason we shouldn't have it.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Dec 31 18:46:59 2013 UTC (10 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Standardize on loop variables for kernels and sets

Because we use them other places, may as well keep things neat and orderly.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 31 18:42:31 2013 UTC (10 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.56: +7 -2 lines
Diff to previous 1.56 (colored)

Check sums for all files we expect to have not all files we *do* have.

Safer that way, more likely to catch failures.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Dec 28 02:58:37 2013 UTC (10 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored)

Get checksum files from the "main" ftp site

Because we can.  Probably should be an option or somesuch.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Dec 28 02:56:24 2013 UTC (10 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)

Bail out if the checksum doesn't match

Because that should be fatal.  Do provide a way to override it though

Revision 1.54 / (download) - annotate - [select for diffs], Sat Dec 28 02:55:28 2013 UTC (10 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.53: +22 -22 lines
Diff to previous 1.53 (colored)

Better output, switch headings from ### to ==>

Because that is more like what sysmerge does and so we look better.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Nov 9 21:58:26 2013 UTC (10 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.52: +4 -3 lines
Diff to previous 1.52 (colored)

Check the correct kernel version to see if we are changing kernels

Because the boot kernel is not the next one we are booting from.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Oct 20 00:26:35 2013 UTC (10 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.51: +1 -11 lines
Diff to previous 1.51 (colored)

Don't attempt to automate sending of the dmesg

It can cause trouble if we are upgrading between versions where incompatable
binaries have been replaced.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Oct 20 00:23:05 2013 UTC (10 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.50: +5 -1 lines
Diff to previous 1.50 (colored)

Only attempt to install the smtp_auth sendmail for same kernel installs

That is, when we are going to be mostly just updating packages.

Otherwise it could use binaries that have already been replaced with non-working versions.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Oct 20 00:18:04 2013 UTC (10 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.49: +11 -11 lines
Diff to previous 1.49 (colored)

Move copying /sbin/oreboot into the main program

Copying /sbin/oreboot isn't really part of install_sets, makes more sense
in the main program.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Oct 20 00:13:38 2013 UTC (10 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)

Check for a new kernel, not a new version

To better insulate from changes, rather than insisting on a reboot only between versions, instead force the reboot for each kernel change.

This does mean an extra reboot that may not be strictly necessary most of the time, but it is safer.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 26 18:13:03 2013 UTC (11 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.47: +5 -1 lines
Diff to previous 1.47 (colored)

Unname bsd.sp when we choose what to install

Because later on we pick out what to install assuming it has the "normal" name.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 16 06:56:15 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.46: +22 -44 lines
Diff to previous 1.46 (colored)

Get rid of the mergemaster fallback and the possible -a flag

Sysmerge does things automatically without arguments if there is a
/usr/src directory so clean this up because if your system is that
old, reinstall.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 16 03:29:02 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.45: +8 -6 lines
Diff to previous 1.45 (colored)

Don't backup the old kernel if it is the same as what we are installing

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 16 01:56:46 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Download the kernels we are going to install, even if they don't exist

Because bsd.pm might be named /bsd and so we wouldn't see it.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 9 04:08:37 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.43: +13 -1 lines
Diff to previous 1.43 (colored)

Warn that you should have a root shell available to run /sbin/oreboot

when upgrading between versions using sudo

Revision 1.43 / (download) - annotate - [select for diffs], Sun Dec 9 04:06:57 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored)

Better prompting for the sudo password.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Dec 9 03:41:41 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Better sanitize the BOOT_KERNEL, should start with a /

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 8 19:55:39 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.40: +16 -1 lines
Diff to previous 1.40 (colored)

Add a license from /usr/share/misc/license.template

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 8 19:54:08 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.39: +4 -5 lines
Diff to previous 1.39 (colored)

We only need to check one checksum

If we put them in a reasonable order, the first one will be best.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Dec 8 19:52:08 2012 UTC (11 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.38: +103 -82 lines
Diff to previous 1.38 (colored)

Redo finding which kernels to install

Loses the ability to have custom kernels in /bsd* but makes makes
the output cleaner.  The functionality could be added back in.

The main goal was to display which kernel versions we have and will
have so we know better what we are installing.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 19 04:03:47 2012 UTC (12 years ago) by andrew
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

Symlink to the correct bsd

Was accidentially symlinking improperly on the first run.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 17 22:39:09 2010 UTC (13 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

symlinks of bsd to bsd.sp or bsd.mp instead of /bsd.sp or /bsd.mp.
might fix an issue with a supported upgrade, unsure tho

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jun 17 20:35:47 2010 UTC (13 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

I think I had that backwards.  oops.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Feb 10 20:57:07 2010 UTC (14 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34 (colored)

update RCS Ids

Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 31 16:50:20 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

pass sendmail a bad option so it errors (after telling us what we need to know) rather than doing any DNS lookups or any crap.

Should help when updating without internet.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 31 16:48:19 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored)

Check that $_file is a symlink before following it. Otherwise we get into a loop of calling file on an empty filename

Revision 1.32 / (download) - annotate - [select for diffs], Thu Dec 10 19:34:39 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

fix the last send_dmesg bit

Revision 1.31 / (download) - annotate - [select for diffs], Thu Dec 10 19:23:11 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.30: +11 -1 lines
Diff to previous 1.30 (colored)

add send_dmesg

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 10 18:21:51 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.29: +10 -5 lines
Diff to previous 1.29 (colored)

minor cosmetic
if FORCE_DIR is snapshots point people to current.html

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 10 06:51:28 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored)

Trim leading / on $_true_bsd, it wasn't there consistantly anyway.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Dec 10 06:09:40 2009 UTC (14 years, 4 months ago) by andrew
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

use the right variable

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 4 04:26:36 2009 UTC (14 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

Only -a for sysmerge that support it.  Now it is the default so don't do it anymore.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 26 19:52:23 2009 UTC (14 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

use full path to ${_b}

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jun 13 16:34:46 2009 UTC (14 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

bsd.sp is /bsd.sp, not /bsd.  At least usually when we are using this script.
I will have to think if that is usually the case.

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 29 21:47:37 2009 UTC (14 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

the old sendmail line apparently sends "root" email.  Not very handy so now do iit differently.

Revision 1.23 / (download) - annotate - [select for diffs], Thu May 14 23:00:46 2009 UTC (14 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.22: +26 -2 lines
Diff to previous 1.22 (colored)

Note if we didn't replace /bsd (or whatever it links to)

Revision 1.22 / (download) - annotate - [select for diffs], Wed May 13 16:40:50 2009 UTC (14 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (colored)

Remind of the existence of /sbin/oreboot

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 13 04:26:32 2009 UTC (14 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.20: +26 -15 lines
Diff to previous 1.20 (colored)

fix a few typos
follow the new "upgrade45.html" better
	copy a /usr/sbin/oreboot
	install userland before a reboot

Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 25 00:14:12 2009 UTC (15 years ago) by andrew
Branch: MAIN
Changes since 1.19: +25 -13 lines
Diff to previous 1.19 (colored)

There are different types of checksum files now.  DOH!

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 14 01:09:23 2009 UTC (15 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.18: +33 -7 lines
Diff to previous 1.18 (colored)

Install sendmail with SMTP_AUTH if it was installed before and is available

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 14 18:13:23 2009 UTC (15 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.17: +8 -1 lines
Diff to previous 1.17 (colored)

mention that the sets were all found if they were

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jan 14 17:58:40 2009 UTC (15 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.16: +48 -5 lines
Diff to previous 1.16 (colored)

If there is no mirror, just look for local files

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 13 21:47:49 2009 UTC (15 years, 3 months ago) by andrew
Branch: MAIN
Changes since 1.15: +16 -17 lines
Diff to previous 1.15 (colored)

we don't actually care what file we found, just that we found a version

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 19 23:02:38 2008 UTC (15 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.14: +14 -2 lines
Diff to previous 1.14 (colored)

make http sets_exist more robust

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 19 22:38:00 2008 UTC (15 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.13: +19 -18 lines
Diff to previous 1.13 (colored)

move the var setting to the bottom with "main"

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 19 22:35:56 2008 UTC (15 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

extract firmware and ifconfig when installing new kernel

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 12 06:07:42 2008 UTC (15 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.11: +14 -9 lines
Diff to previous 1.11 (colored)

don't fail set_version until after we show what we got (specifically the list of installed packages)

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 9 07:22:52 2008 UTC (15 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

make the index file have parens around the names so we can match better

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 5 17:07:58 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.9: +45 -19 lines
Diff to previous 1.9 (colored)

SYSMERGE may not exist when we start, so don't check for it until we need it
look for current version file sets if FORCE_DIR is not set.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 31 01:36:33 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.8: +20 -6 lines
Diff to previous 1.8 (colored)

Support http protocol for figuring out file versions

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 13 18:31:49 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.7: +11 -10 lines
Diff to previous 1.7 (colored)

reorder and rearrange variables that we output

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 11 22:19:52 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.6: +13 -15 lines
Diff to previous 1.6 (colored)

Set variables that can be overridden as close to the top of the file as I can so that they are easier to find.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 11 22:14:25 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.5: +6 -3 lines
Diff to previous 1.5 (colored)

Don't get a new MD5 file if we already have one.  Maybe we want to install an old release for some reason.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 11 22:12:33 2008 UTC (15 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.4: +99 -85 lines
Diff to previous 1.4 (colored)

Lots of cleanup.  better error messages, local variable, better set_version()

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 12 22:44:19 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

allow override of DESTDIR from the environment.  I dunno if that is actually a good idea tho

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 12 22:42:09 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.2: +52 -51 lines
Diff to previous 1.2 (colored)

get rid of many of the extra {} that were around variables.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 12 22:07:05 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN
Changes since 1.1: +343 -1 lines
Diff to previous 1.1 (colored)

Merged everything from the other files into this single file.  Should make things a lot nicer

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 12 18:45:47 2008 UTC (15 years, 8 months ago) by andrew
Branch: MAIN

The beginnings, going to merge the other stuff into this single script to make it easier to use

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>