Summary: | sys-apps/openrc-0.12.4 cleans /run from root partition without checking /run is really on tmpfs | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Honza <hkmaly> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Honza
2013-12-07 17:46:46 UTC
I am unable to reproduce this. Here is a little more explanation of clean_run and why it shouldn't happen. 1. The bind mount mounts / to a temporary directory which I will call tmpdir for the sake of discussion. 2. Bind mounts are not recursive, so /tmpdir/run is not the same as /run. It is what would be under the tmpfs mounted at /run. 3. There should be nothing in /tmpdir/run/*, so that is what we remove, not /run/*, so I'm uncertain how /run/* ended up empty. I already explained that there is no tmpfs mounted on my /run. I'm not sure why, might've been because I didn't do the transition to openrc/baselayout-2 correctly or because I have hand-compiled kernel. I'm saying that instead of assuming that the tmpfs is mounted it would be better to check before starting something so destructive. |