Friday, July 05, 2024

Re: /sys is a symlink to an empty directory

On Fri, Jul 05, 2024 at 06:35:22AM +0200, Otto Moerbeek wrote:
> On Fri, Jul 05, 2024 at 04:15:32AM +0000, Anon Loli wrote:
>
> > On Thu, Jul 04, 2024 at 07:34:43PM +0200, Omar Polo wrote:
> > > On 2024/07/04 17:08:53 +0000, Anon Loli <anonloli@autistici.org> wrote:
> > > > Hello mailing list
> > > > Probably a stupid question, but I reinstalled OpenBSD like 10 times this week,
> > > > and every time I went to compile the kernel like it says in the documentation,
> > > > I could always cd into /sys/dev..., but this install it seems like /sys points
> > > > to "usr/src/sys" (it's "usr", not "/usr").
> > > >
> > > > All I did on this install was download tar.gz files and extract them in /usr,
> > > > including the /usr/sys folder, which was supposed to be in /sys pre-installed
> > > > with the system, what's happening?
> > > > Did I broke something again and need to install again? -_-
> > > >
> > > > I'm currently following documentation and doing everything in /usr/sys
> > > > (extracted AND VERIFIED from tar.gz) as if it were /sys
> > > >
> > > > I'm sorry if this is a stupid question
> > > >
> > > > Partition table:
> > > > /
> > > > /home
> > > > /tmp
> > > > /usr
> > > > /usr/X11R6
> > > > /usr/local
> > > > /usr/obj
> > > > /usr/ports
> > > > /usr/ports/pobj
> > > > /usr/src
> > > > /var
> > > >
> > > > All of them are <25% of capacity, it's a fresh install
> > >
> > > Don't think it's a stupid question, but also nothing to worry. AFAICS
> > > /sys is always installed as a symlink to /usr/src/sys which works assuming
> > > that you have the sources checked out in /usr/src (either via the
> > > tarball, cvs, or got/git.)
> > >
> > > I guess it's just to save some typing, not really sure, but nothing to
> > > worry about :)
> > >
> > >
> > > Cheers,
> > >
> > > Omar Polo
> >
> >
> > Really? Phew! That's a relief!
> > But I wonder why it was empty before I manually planted the /usr/sys via tar
> > extraction... does cvs checkout of SRC also fetch the sys directory?? because
> > it wasn't empty when I worked with cvs instead
> >
> > Thanks
> >
>
> You are confused.
> The link in / is sys -> usr/src/sys
>
> There is no such thing as a /usr/sys dir. You probably have extracted the
> src or sys tarball in the wrong directory.
>
> When you say: "I followed the instructions" it is always good to say
> explicitly which instructions.
>
> -Otto

More like mentally fucked and left to run only on 2 brain cells by the time I
hit compiling no.5 lol

https://www.openbsd.org/faq/faq5.html
release(1)

1. I'm so so sorry, I just realized that responsible things like compiling
and/or mailing the openbsd lists shouldn't be done when someone's too mentally
exhausted from the issue to fucking read properly...

2. I'm not 100% sure if it's a ME issue, because CVS and .tar.gz files actually
differ
How? I believe that in CVS the src/sys directory exists, and is a part of the
src CVS repository, whereas when using verifiable .tar.gz files, the sys.tar.gz
isn't in src.tar.gz... and I was stupid because I was like "what the fuck even
is sys.tar.gz", then I realized it was missing, but what I didn't realize is
that it was supposed to be in /usr/src/sys, not /usr/sys,

so I kindof see this as an issue, like IDK if it's even mentioned somewhere
that (can't verify so it's) malicious CVS and verifiable .tar.gz files are
different (sys.tar.gz isn't a part of src.tar.gz by default)

How did I find this out? I found this out because when I attempted to compile src,
it stopped because there wasn't a src/sys directory

No comments:

Post a Comment