Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out what to do with /media/fat #19

Open
amstan opened this issue May 4, 2022 · 0 comments
Open

Figure out what to do with /media/fat #19

amstan opened this issue May 4, 2022 · 0 comments

Comments

@amstan
Copy link
Member

amstan commented May 4, 2022

Essentially: pacman should have no right to put anything in /media/fat.

It's against sane packaging hygiene.

It carries the danger of the user modifying stuff managed by pacman, leading to errors come update time.

Perhaps pacman provided files that are read by MiSTer should go in somewhere like /usr/lib/mister/ and somehow mounted readonly to a view (which combines both the user's files and the system-managed read-only files).

Perhaps use /media/usb for user provided files?

# /etc/fstab

/usr/lib/mister/   /media/fat               none  defaults,bind 0 1
/var/mister        /media/usb               none  defaults,bind 0 1 #folder writable by people in the mister group

# optional
/home/alex/misterstuff        /var/mister               none  defaults,bind 0 1

Bonus points: modifying mister binary (which is not too hard to for us to have a patch to and compile) to read directly from /usr/lib/mister and /var/mister without doing any bind mounting. This, while neater, is scary because we'd be moving away from conventions that upstream mister does. Some other scripts FWIW might break.

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

No branches or pull requests

1 participant