Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Clay Daniels

On Fri, 29 Nov 2019, Clay Daniels wrote:


Date: Fri, 29 Nov 2019 12:55:43 -0600
From: Clay Daniels 
To: "misc@openbsd.org" 
Subject: Re: Installing OpenBSD -current snapshots

Thanks to everyone who responded. If I knew all the answers I would not
have asked. And I should have read deeper into the documentation before
asking, and am in the process of doing so now.

What I decided was to stick with the release install66.fs boot image. It
works to completely install everything without floundering around to find
the file sets. I really have no need to run current OpenBSD. Maybe after a
few months of study I will think about it again.

Also I'm going to unsubscribe with this email account, and re-subscribe
with my account with sdf.org where I will not be stuck with google's
"top-posting". I don't like it either, same as everyone else.


Ok, this is my real unix email, run on netbsd. I use it via ssh in 
good old alpine. No more top-posting for me!




Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Clay Daniels
Thanks to everyone who responded. If I knew all the answers I would not
have asked. And I should have read deeper into the documentation before
asking, and am in the process of doing so now.

What I decided was to stick with the release install66.fs boot image. It
works to completely install everything without floundering around to find
the file sets. I really have no need to run current OpenBSD. Maybe after a
few months of study I will think about it again.

Also I'm going to unsubscribe with this email account, and re-subscribe
with my account with sdf.org where I will not be stuck with google's
"top-posting". I don't like it either, same as everyone else.

Clay


Re: SIGBUS on octeon for my program

2019-11-29 Thread David Higgs
Be warned that __packed doesn't do quite what you think it does.

void func(int *p) {
*p = 0;
}

If you pass an unaligned pointer into this function on a strict-alignment
platform, your program will likely crash.  I am unaware of any attribute
that can inform the compiler that 'p' may be misaligned.

--david

On Fri, Nov 29, 2019 at 2:54 AM Peter J. Philipp  wrote:

> On Thu, Nov 28, 2019 at 11:44:07PM -0700, Theo de Raadt wrote:
> > Half the cpu platforms fault on unaligned access.
> >
> > There are strategies for handling this. Your code must use them.
> >
> > It is kind of boring, actually.
>
> I took a look at how libasr does it, and I have similar code ie. pack8(),
> pack16(), pack32(), I will just change all my functions, as unalignment
> flags passed per -m aren't standard on every arch.  I did use __packed on
> structs already but the way libasr does is a great example I think.
>
> It's a bit of work but the fact that this could work on architectures like
> octeon make it worth it for me.
>
> Thanks a lot!
> -peter
>
>


Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Nick Holland
On 2019-11-29 02:26, Clay Daniels wrote:
> Nick, thanks for straightening me out about what is actually going on here
> with the install. I see that there is now a fresh snapshot with today's
> date, not the one I downloaded and ran yesterday. This might tend to keep
> one busy. I'm not sure I would not be better off doing what Bruno & Marc
> suggested and run sysupgrade. Thanks to them for the advice.

sysupgrade does upgrades of existing systems.  Very slick.  However, it
isn't for fresh installs, and if you have convenient console access, it's
not the preferred way of doing it.  And based on the questions here,
NO WAY.  You need to understand what's going on before you start doing
unattended upgrades.

It also (by default) assumes network upgrades, and if you are wanting
everything on local media, there are existing better solutions.

And yes, following current is a never-ending quest.  However, problems
are relatively rare and usually not a big deal, and generally fixed on
the next snapshot.
 
> If I do decide to put the filesets on the the install thumbdrive, I see a
> total of 26 files in the directory. Obviously some are not necessary like
> the floppy or both the .fs & .iso (just one needed), nor the test
> instructions, etc.
> So which files do I REALLY need on my usb thumbdrive to get a complete
> install, x included?


STOP STOP STOP STOP.
You need to re-read what I wrote and the install part of the FAQ some
more times.
The install66.fs file is an image with the *entire install set included*.
You do not want to add things.  You COULD do some voodoo to add stuff to
the miniroot66.fs, but PLEASE DON'T...you would just be re-inventing the
install66.fs, poorly and with more difficulty.

> 
> Please excuse the "top-posting". That's the only way my darn google mail
> does reply's. Kind of irritating, to me and the reader too.
 
Bottom posting was invented for those who can't write in complete thoughts
with context.  You know, like most of the computer world. :-/

Nick.




> Clay
> 
> 
> 
> 
> On Thu, Nov 28, 2019 at 12:34 PM Nick Holland 
> wrote:
> 
>> On 2019-11-27 21:29, Edgar Pettijohn wrote:
>> > On Wed, Nov 27, 2019 at 08:05:30PM -0600, Clay Daniels wrote:
>> >> I have successfully installed OpenBSD 6.6 release and would like to give
>> >> the Current Snapshots a try. I went to a mirror, and to:
>> >>
>> >> Index of /pub/OpenBSD/snapshots/amd64/
>> >>
>> >> I saw install66.fs (probably for usb memstick) and install66.iso (surely
>> >> for a cd/dvd) at ~450Mb. I picked the install66.fs, wrote it to a usb
>> >> thumbdrive, and it starts the install. When i get into the install it
>> asks
>> >> where are the file sets? Humm, maybe it gets these online and it tries
>> to
>> >> do this but no luck. It was late last night, and I checked to see if it
>> had
>> >> written anything to my disk, which it had not, and went to bed. This
>> >> evening I'm looking a bit deeper at the snapshot directory and I
>> suspect I
>> >> need to provide the install with base66.tzg at ~239Mb.
>>
>> NO!
>>
>> [snip misleading stuff]
>> > I noticed this also, but hadn't had time to figure out if I had messed
>> up or
>> > the installer had. As a general rule I assume its me that messed up. Its
>> odd
>> > if you mount the install66.fs you can see the pub/amd64 directory, but
>> during
>> > installation it can't seem to find the directory regardless of what I
>> have
>> > tried.
>> >
>> > Edgar
>>
>> First of all...nothing at all to do about snapshots -- the OpenBSD
>> installation process has remained amazingly stable over the last 20
>> years.
>> New options here and there, but overall, very similar.  Unless something
>> changed in the last few days, installing a snapshot is identical to
>> installing 6.6.
>>
>> The installXX.iso and installXX.fs are complete, stand-alone installation
>> kits.  Everything you need is on them.  You can boot from them, and all
>> the installation files are right there.  Look Ma!  No network needed!
>> ...well...unfortunately there is the issue of firmware files, which are
>> legally not feasible to put on the install media, so you will need network
>> for most machines eventually.  But let's ignore that for now. :)
>>
>> Once the system has booted on the install kernel, you have three devices
>> you are working with:
>> 1) the install kernel's internal "RAM disk" that is part of bsd.rd which
>>   you booted from,
>> 2) your target disk
>> 3) the USB drive with the install files on it.
>>
>> The reason you can't see the install files on the USB stick from the
>> install kernel is they aren't mounted.  You didn't boot from the entire
>> USB stick, you booted from ONE TINY LITTLE bsd.rd file, that just happened
>> to be sitting on the big USB stick...but as far as bsd.rd is concerned,
>> the USB stick isn't part of the booted environment (yet).
>>
>> You aren't booting from a "Live Media".  You are booting from a tiny kernel
>> with a built in file system that's sitting on the same inert file 

Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Mihai Popescu
> BTW, why do you want to run -current?
> There are only 2 real reasons to do that
> [ ... ]

Total nonsense ...


Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Eric Furman
On Fri, Nov 29, 2019, at 2:26 AM, Clay Daniels wrote:
> Nick, thanks for straightening me out about what is actually going on here
> with the install. I see that there is now a fresh snapshot with today's
> date, not the one I downloaded and ran yesterday. This might tend to keep
> one busy. I'm not sure I would not be better off doing what Bruno & Marc
> suggested and run sysupgrade. Thanks to them for the advice.

BTW, why do you want to run -current?
There are only 2 real reasons to do that
1: You HAVE to (for various reasons)
2: You want to help with development and test things. This is a great reason, 
but
you better be prepared for a lot of work. Know what you are doing and file bug 
reports.
Else you won't be a whole lot of actual help.

If these don't apply then you might be better off just running Release.
Not trying to be an A hole here. Just giving you heads up of what is expected of
you if you run -current.
Good luck



Re: Installing OpenBSD -current snapshots

2019-11-29 Thread Bodie




On 29.11.2019 08:45, Clay Daniels wrote:

Another question. I know I need to write the boot file to the usb drive
thus:
# dd if=install66.fs of=/dev/da0 bs=1M conv=sync
But can I just use plain old "cp base66.tgz /mnt" etc for the other 
files?




Sounds like you are rushing too quickly and too much being used to
wrong approach learned on Linux.

How about to start here first:

https://www.openbsd.org/faq/faq4.html

then:

https://www.openbsd.org/faq/faq1.html#ManPages
https://www.openbsd.org/faq/faq10.html

followed by anything more you will need.

Trust me, you will be surprised how many questions will not need to be
asked at all in future ;-)

On Fri, Nov 29, 2019 at 1:26 AM Clay Daniels 


wrote:

Nick, thanks for straightening me out about what is actually going on 
here
with the install. I see that there is now a fresh snapshot with 
today's
date, not the one I downloaded and ran yesterday. This might tend to 
keep
one busy. I'm not sure I would not be better off doing what Bruno & 
Marc

suggested and run sysupgrade. Thanks to them for the advice.

If I do decide to put the filesets on the the install thumbdrive, I 
see a
total of 26 files in the directory. Obviously some are not necessary 
like

the floppy or both the .fs & .iso (just one needed), nor the test
instructions, etc.
So which files do I REALLY need on my usb thumbdrive to get a complete
install, x included?

Please excuse the "top-posting". That's the only way my darn google 
mail

does reply's. Kind of irritating, to me and the reader too.

Clay




On Thu, Nov 28, 2019 at 12:34 PM Nick Holland 


wrote:


On 2019-11-27 21:29, Edgar Pettijohn wrote:
> On Wed, Nov 27, 2019 at 08:05:30PM -0600, Clay Daniels wrote:
>> I have successfully installed OpenBSD 6.6 release and would like to
give
>> the Current Snapshots a try. I went to a mirror, and to:
>>
>> Index of /pub/OpenBSD/snapshots/amd64/
>>
>> I saw install66.fs (probably for usb memstick) and install66.iso
(surely
>> for a cd/dvd) at ~450Mb. I picked the install66.fs, wrote it to a usb
>> thumbdrive, and it starts the install. When i get into the install it
asks
>> where are the file sets? Humm, maybe it gets these online and it tries
to
>> do this but no luck. It was late last night, and I checked to see if
it had
>> written anything to my disk, which it had not, and went to bed. This
>> evening I'm looking a bit deeper at the snapshot directory and I
suspect I
>> need to provide the install with base66.tzg at ~239Mb.

NO!

[snip misleading stuff]
> I noticed this also, but hadn't had time to figure out if I had messed
up or
> the installer had. As a general rule I assume its me that messed up.
Its odd
> if you mount the install66.fs you can see the pub/amd64 directory, but
during
> installation it can't seem to find the directory regardless of what I
have
> tried.
>
> Edgar

First of all...nothing at all to do about snapshots -- the OpenBSD
installation process has remained amazingly stable over the last 20
years.
New options here and there, but overall, very similar.  Unless 
something

changed in the last few days, installing a snapshot is identical to
installing 6.6.

The installXX.iso and installXX.fs are complete, stand-alone 
installation
kits.  Everything you need is on them.  You can boot from them, and 
all

the installation files are right there.  Look Ma!  No network needed!
...well...unfortunately there is the issue of firmware files, which 
are
legally not feasible to put on the install media, so you will need 
network

for most machines eventually.  But let's ignore that for now. :)

Once the system has booted on the install kernel, you have three 
devices

you are working with:
1) the install kernel's internal "RAM disk" that is part of bsd.rd 
which

  you booted from,
2) your target disk
3) the USB drive with the install files on it.

The reason you can't see the install files on the USB stick from the
install kernel is they aren't mounted.  You didn't boot from the 
entire
USB stick, you booted from ONE TINY LITTLE bsd.rd file, that just 
happened
to be sitting on the big USB stick...but as far as bsd.rd is 
concerned,

the USB stick isn't part of the booted environment (yet).

You aren't booting from a "Live Media".  You are booting from a tiny
kernel
with a built in file system that's sitting on the same inert file 
system

as
the install files.

Read that over and over until you understand what I'm saying, not 
what you
are assuming is going on.  It's really important to understand.  It's 
very
different from many Linux installation processes -- you are running 
off a
file only 10MB in size which is now completely in RAM.  That file 
JUST

HAPPENED to come from a USB stick that's much bigger.

So, when it comes to answering where your install files are, they are 
on
a disk, but it's NOT a mounted disk.  It's on your USB drive that's 
not
mounted now, and won't be after installation, but could be useful 
shortly.


Your next problem is...WHICH disk