summaryrefslogtreecommitdiff
path: root/media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-12-31 22:37:52 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-12-31 22:37:52 +0200
commitd59f5f405188d93f5c00e21840930d4f1eaf8dd1 (patch)
tree91af19c93a18c173b81109aefffa90fbd41ac230 /media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch
parentea8a28a03b13e387b14c15c0eb3e3f8be42ab0b4 (diff)
Added media gfx,libs,sound
Diffstat (limited to 'media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch')
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch b/media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch
new file mode 100644
index 00000000..dcb1ef99
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.3-openrc-umount-fix.patch
@@ -0,0 +1,29 @@
+commit ae4b5cc9c2d904e18db51876d9bd292504714600
+Author: MichaƂ Januszewski <spock@gentoo.org>
+Date: Mon Apr 6 20:59:48 2009 +0200
+
+ Prevent umounting of theme directories.
+
+ Some themes dynamically modify themselves during boot. In order to be
+ able to do that, they mount a tmpfs in their main directory. Prevent
+ openrc from umounting this directory when rebooting.
+
+diff --git a/gentoo/splash.c b/gentoo/splash.c
+index 048e0ec..d831d0c 100644
+--- a/gentoo/splash.c
++++ b/gentoo/splash.c
+@@ -968,10 +968,10 @@ do_start:
+ if (name && !strcmp(name, "localmount")) {
+ char *umounts = getenv("RC_NO_UMOUNTS");
+
+- if (umounts)
+- fprintf(rc_environ_fd, "RC_NO_UMOUNTS=%s:%s", umounts, FBSPLASH_CACHEDIR);
+- else
+- fprintf(rc_environ_fd, "RC_NO_UMOUNTS=%s", FBSPLASH_CACHEDIR);
++ if (umounts)
++ fprintf(rc_environ_fd, "RC_NO_UMOUNTS=%s:" FBSPLASH_CACHEDIR ":/etc/splash/%s", umounts, config->theme);
++ else
++ fprintf(rc_environ_fd, "RC_NO_UMOUNTS=" FBSPLASH_CACHEDIR ":/etc/splash/%s", config->theme);
+ }
+ i = splash_svc_handle(name, "svc_stop", false);
+ break;