Skip to content

feat: change /opt to symlink#498

Open
NN708 wants to merge 1 commit into
mainfrom
opt
Open

feat: change /opt to symlink#498
NN708 wants to merge 1 commit into
mainfrom
opt

Conversation

@NN708
Copy link
Copy Markdown
Member

@NN708 NN708 commented Jun 5, 2026

Resolves #497.

@NN708 NN708 requested a review from a team June 5, 2026 16:03
Copy link
Copy Markdown
Member

@taukakao taukakao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I strongly disagree with this. It doesn't fix anything and just makes custom images less approachable for less experienced users and more annoying for all users.

@NN708
Copy link
Copy Markdown
Member Author

NN708 commented Jun 6, 2026

@taukakao Thanks for your review, but I think using OverlayFS for /opt is a worse approach. We need clear boundaries between directories managed by the system image developer and those managed by the end user. Without this, users may modify files and then never receive updates, leading to confusion and unexpected behavior. Apart from /etc (where we must provide defaults), /opt is currently the only directory still relying on OverlayFS.

A major reason Linux can be difficult to use is its excessive freedom: a lack of enforced standards, and even where standards exist, many people ignore them. With immutability, we have already established a clear separation between the system and applications. System image developers should ensure that system packages are always installed to /usr, not /opt. Other immutable distros already symlink /opt to /var/opt, and I don't see a compelling reason for Vanilla OS to deviate from that practice.

@taukakao
Copy link
Copy Markdown
Member

taukakao commented Jun 6, 2026

@NN708 It's much harder to modify the system image for most other immutable distros, which is a big selling point for VOS in my eyes.

If this is only about boundaries, then we could implement a method where the image can define what folders in /opt are mounted from the image, and the rest would be up to the user.

@NN708
Copy link
Copy Markdown
Member Author

NN708 commented Jun 7, 2026

It's much harder to modify the system image for most other immutable distros, which is a big selling point for VOS in my eyes.

That's true, but system image developers are still technical users who will read our docs. Avoiding confusion for end users is more important than making things slightly easier for developers.

If this is only about boundaries, then we could implement a method where the image can define what folders in /opt are mounted from the image, and the rest would be up to the user.

This introduces unnecessary complexity. It's simpler for system image developers to read "/opt, /srv and /usr/local are reserved for local administrators" than to figure out how to define mount points. This approach would also confuse end users when they switch between different images or come from another immutable distro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change /opt to symlink pointing to /var/opt

3 participants