Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 642
    • Issues 642
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 194
    • Merge Requests 194
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #711

Closed
Open
Opened Jul 23, 2011 by Ted Trask@ttrask01Developer

Stopping swap results in RO root filesystem

Running “/etc/init.d/swap stop” changes the mount of the root tmpfs filesystem from rw to ro. Tested on 2.2.2. Running “swapoff -a” does not have the same problem.

I notice that the swap init.d script runs “umount -a -t tmpfs 2>/dev/null”, but it’s the same init.d script as on 1.10, where I know this issue didn’t exist. Perhaps it’s a busybox umount change?

I modified the init.d to change to “umount -a -t tmpfs”, and the output was:
* Caching service dependencies … [ ok ]
* Deactivating swap devices …
umount: can’t umount /lib/rc/init.d: Device or resource busy
umount: can’t umount /dev: Device or resource busy

When it works, the output is:
* Caching service dependencies … [ ok ]
* Deactivating swap devices …
umount: can’t umount /lib/rc/init.d: Device or resource busy
umount: can’t umount /: Device or resource busy
umount: can’t umount /dev: Device or resource busy

(from redmine: issue id 711, created on 2011-07-23, closed on 2011-08-12)

  • Changesets:
    • Revision 313b6883 by Natanael Copa on 2011-08-11T07:44:51Z:
main/openrc: swap: only unmount tmpfs when shutting down

ref #711
  • Revision 8e532abb by Natanael Copa on 2011-08-11T07:47:20Z:
main/openrc: swap: only unmount tmpfs when shutting down

fixes #711
(cherry picked from commit 313b6883a2c955ea2797fb6b8632c126471463b7)
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Alpine 2.2.3
Milestone
Alpine 2.2.3 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#711