void-linux / void-linux/void-runit

03-filesystems.sh ignores ro option in /etc/fstab for root fs

Open
#97 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
245
Forks
67
Avg merge
2d
Merged PRs (30d)
2

Description

Even with default,ro in /etc/fstab for root fs (/) the filesystem is always mounted as read-write. Relevant part of /etc/runit/core-services/03-filesystems.sh:

msg "Mounting rootfs read-write..."
mount -o remount,rw / || emergency_shell

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /etc/runit/core-services/03-filesystems.sh and inspect how the root filesystem remount command relates to the /etc/fstab options. Reproduce or trace the root mount with default,ro configured, then verify that the root filesystem remains read-only while other required startup behavior still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.