Change busybox to install to /opt/busybox #35

Open
opened 2024-03-09 11:31:47 -07:00 by emma · 3 comments
Owner

In the future, busybox will be considered the default POSIX-compliant toolset for bonsai while the bonsai utilities will be the default tools generally. Eventually, busybox will be moved out of core.

In the future, busybox will be considered the default POSIX-compliant toolset for bonsai while the bonsai utilities will be the default tools generally. Eventually, busybox will be moved out of core.
emma added the
core
update
labels 2024-03-09 11:31:47 -07:00
Owner

/opt/ is rarely used (for better or worse) with pkgsrc by default installing to a /usr/pkg/ prefix and most local system modifications defaulting to a /usr/local/ prefix. It would be nice to have the base system in its own /usr/bonsai/ prefix with appropriate symlinks in system directories to make recovery in event of corruption easier; just fetch a tarball of the /usr/bonsai/ tree and run a script to rebuild the symlinks. Then the package manager in /usr/kiss/ and our POSIX userland (busybox or something implemented for Bonsai) in /usr/posix/. When POSIX functionality is accomplished by busybox, /usr/posix can be a link to /usr/busybox/.

`/opt/` is rarely used (for better or worse) with pkgsrc by default installing to a `/usr/pkg/` prefix and most local system modifications defaulting to a `/usr/local/` prefix. It would be nice to have the base system in its own `/usr/bonsai/` prefix with appropriate symlinks in system directories to make recovery in event of corruption easier; just fetch a tarball of the `/usr/bonsai/` tree and run a script to rebuild the symlinks. Then the package manager in `/usr/kiss/` and our POSIX userland (busybox or something implemented for Bonsai) in `/usr/posix/`. When POSIX functionality is accomplished by busybox, `/usr/posix` can be a link to `/usr/busybox/`.
Author
Owner

The /opt directory is for packages not native to the system—POSIX will not be native to Bonsai, so that’s where it should live.

It would be nice to have the base system in its own /usr/bonsai/ prefix with appropriate symlinks in system directories to make recovery in event of corruption easier; just fetch a tarball of the /usr/bonsai/ tree and run a script to rebuild the symlinks. Then the package manager in /usr/kiss/ and our POSIX userland (busybox or something implemented for Bonsai) in /usr/posix/. When POSIX functionality is accomplished by busybox, /usr/posix can be a link to /usr/busybox/.

I very strongly dislike this. The /usr hierarchy should be kept clear of stray directories and confusing symlink layouts—this is a concern i also want to address in the package manager as it symlinks all of the bin directories together and causes a very cluttered situation.

The `/opt` directory is for packages not native to the system—POSIX will not be native to Bonsai, so that’s where it should live. > It would be nice to have the base system in its own /usr/bonsai/ prefix with appropriate symlinks in system directories to make recovery in event of corruption easier; just fetch a tarball of the /usr/bonsai/ tree and run a script to rebuild the symlinks. Then the package manager in /usr/kiss/ and our POSIX userland (busybox or something implemented for Bonsai) in /usr/posix/. When POSIX functionality is accomplished by busybox, /usr/posix can be a link to /usr/busybox/. I very strongly dislike this. The `/usr` hierarchy should be kept clear of stray directories and confusing symlink layouts—this is a concern i also want to address in the package manager as it symlinks all of the bin directories together and causes a very cluttered situation.
Owner

The /opt directory is for packages not native to the system—POSIX will not be native to Bonsai, so that’s where it should live.

This makes sense to me and after spending some time thinking, I agree.

I very strongly dislike this. The /usr hierarchy should be kept clear of stray directories and confusing symlink layouts—this is a concern i also want to address in the package manager as it symlinks all of the bin directories together and causes a very cluttered situation.

This also makes sense.

> The /opt directory is for packages not native to the system—POSIX will not be native to Bonsai, so that’s where it should live. This makes sense to me and after spending some time thinking, I agree. > I very strongly dislike this. The /usr hierarchy should be kept clear of stray directories and confusing symlink layouts—this is a concern i also want to address in the package manager as it symlinks all of the bin directories together and causes a very cluttered situation. This also makes sense.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/repo#35
No description provided.