Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 270321 Details for
Bug 363971
sys-apps/openrc: Mount tmpfs on /run if directory exists and not already mounted
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Mount-tmpfs-on-run-if-directory-exists-and-not-alrea.patch
0001-Mount-tmpfs-on-run-if-directory-exists-and-not-alrea.patch (text/plain), 1.37 KB, created by
Amadeusz Żołnowski (RETIRED)
on 2011-04-17 21:15:15 UTC
(
hide
)
Description:
0001-Mount-tmpfs-on-run-if-directory-exists-and-not-alrea.patch
Filename:
MIME Type:
Creator:
Amadeusz Żołnowski (RETIRED)
Created:
2011-04-17 21:15:15 UTC
Size:
1.37 KB
patch
obsolete
>From 7f4cc42c9ba562f6367f113755f45df0b4fadce0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name> >Date: Sun, 17 Apr 2011 22:29:12 +0200 >Subject: [PATCH] Mount tmpfs on /run if directory exists and not already > mounted. > >See https://lwn.net/Articles/436012/ for more information on /run. >--- > sh/init.sh.Linux.in | 18 ++++++++++++++++++ > 1 files changed, 18 insertions(+), 0 deletions(-) > >diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in >index 361de0b..d0acb82 100644 >--- a/sh/init.sh.Linux.in >+++ b/sh/init.sh.Linux.in >@@ -91,6 +91,24 @@ if $mountproc; then > eend $? > fi > >+# Mount tmpfs on /run when directory exists. /run is used among others >+# by udev and dracut, but they fall back to /dev/.{udev,initramfs} if >+# /run doesn't exists. >+# Read more about /run on LWN.net: https://lwn.net/Articles/436012/ >+if [ -d /run ]; then >+ if mountpoint -q /run; then >+ einfo "/run is already mounted, skipping" >+ else >+ ebegin "Mounting /run" >+ if ! fstabinfo --mount /run; then >+ mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run >+ fi >+ eend $? >+ fi >+else >+ einfo "/run is not writable directory, not mounting" >+fi >+ > # Try to mount xenfs as early as possible, otherwise rc_sys() will always > # return RC_SYS_XENU and will think that we are in a domU while it's not. > if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then >-- >1.7.5.rc1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 363971
:
270321
|
270327
|
270341
|
270397