* [gentoo-commits] gentoo-x86 commit in sys-fs/eudev/files: udev-postmount
@ 2013-04-05 20:45 Ian Stakenvicius (axs)
0 siblings, 0 replies; 4+ messages in thread
From: Ian Stakenvicius (axs) @ 2013-04-05 20:45 UTC (permalink / raw
To: gentoo-commits
axs 13/04/05 20:45:09
Added: udev-postmount
Log:
version bump
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Revision Changes Path
1.1 sys-fs/eudev/files/udev-postmount
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.1&content-type=text/plain
Index: udev-postmount
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend()
{
need localmount
keyword -vserver -lxc
}
dir_writeable()
{
touch "$1"/.test.$$ 2>/dev/null && rm "$1"/.test.$$
}
# store persistent-rules that got created while booting
# when / was still read-only
store_persistent_rules()
{
# only continue if rules-directory is writable
dir_writeable /etc/udev/rules.d || return 0
local file dest
for file in "${RUNDIR}"/tmp-rules--*; do
dest=${file##*tmp-rules--}
[ "$dest" = '*' ] && break
type=${dest##70-persistent-}
type=${type%%.rules}
ebegin "Saving udev persistent ${type} rules to /etc/udev/rules.d"
cat "$file" >> /etc/udev/rules.d/"$dest" && rm -f "$file"
eend $? "Failed moving persistent rules!"
done
}
start()
{
RUNDIR=$(udevadm info --run)
# check if this system uses udev
[ -d "${RUNDIR}" ] || return 0
# store persistent-rules that got created while booting
# when / was still read-only
store_persistent_rules
}
stop()
{
return 0
}
# vim:ts=4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-fs/eudev/files: udev-postmount
@ 2013-04-11 15:57 Ian Stakenvicius (axs)
0 siblings, 0 replies; 4+ messages in thread
From: Ian Stakenvicius (axs) @ 2013-04-11 15:57 UTC (permalink / raw
To: gentoo-commits
axs 13/04/11 15:57:18
Modified: udev-postmount
Log:
revbump to fix bug 465470, drop deprecated beta3
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Revision Changes Path
1.2 sys-fs/eudev/files/udev-postmount
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?r1=1.1&r2=1.2
Index: udev-postmount
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/files/udev-postmount,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- udev-postmount 5 Apr 2013 20:45:09 -0000 1.1
+++ udev-postmount 11 Apr 2013 15:57:18 -0000 1.2
@@ -34,9 +34,8 @@
start()
{
- RUNDIR=$(udevadm info --run)
# check if this system uses udev
- [ -d "${RUNDIR}" ] || return 0
+ [ -d /run/udev ] || return 0
# store persistent-rules that got created while booting
# when / was still read-only
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-fs/eudev/files: udev-postmount
@ 2013-07-02 19:27 Ian Stakenvicius (axs)
0 siblings, 0 replies; 4+ messages in thread
From: Ian Stakenvicius (axs) @ 2013-07-02 19:27 UTC (permalink / raw
To: gentoo-commits
axs 13/07/02 19:27:07
Modified: udev-postmount
Log:
fixed invalid path of source files in udev-postmount; will revbump ebuilds later when necessary
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Revision Changes Path
1.3 sys-fs/eudev/files/udev-postmount
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?r1=1.2&r2=1.3
Index: udev-postmount
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/files/udev-postmount,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- udev-postmount 11 Apr 2013 15:57:18 -0000 1.2
+++ udev-postmount 2 Jul 2013 19:27:07 -0000 1.3
@@ -21,7 +21,7 @@
dir_writeable /etc/udev/rules.d || return 0
local file dest
- for file in "${RUNDIR}"/tmp-rules--*; do
+ for file in /run/udev/tmp-rules--*; do
dest=${file##*tmp-rules--}
[ "$dest" = '*' ] && break
type=${dest##70-persistent-}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-fs/eudev/files: udev-postmount
@ 2013-07-04 15:30 Ian Stakenvicius (axs)
0 siblings, 0 replies; 4+ messages in thread
From: Ian Stakenvicius (axs) @ 2013-07-04 15:30 UTC (permalink / raw
To: gentoo-commits
axs 13/07/04 15:30:02
Modified: udev-postmount
Log:
udev-postmount: ensure /etc/udev/rules.d exists if missing, when possible
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Revision Changes Path
1.4 sys-fs/eudev/files/udev-postmount
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/files/udev-postmount?r1=1.3&r2=1.4
Index: udev-postmount
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/files/udev-postmount,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- udev-postmount 2 Jul 2013 19:27:07 -0000 1.3
+++ udev-postmount 4 Jul 2013 15:30:02 -0000 1.4
@@ -17,6 +17,11 @@
# when / was still read-only
store_persistent_rules()
{
+ # create /etc/udev/rules.d if it does not exist and /etc/udev is writable
+ [ -d /etc/udev/rules.d ] || \
+ dir_writeable /etc/udev && \
+ mkdir -p /etc/udev/rules.d
+
# only continue if rules-directory is writable
dir_writeable /etc/udev/rules.d || return 0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-07-04 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04 15:30 [gentoo-commits] gentoo-x86 commit in sys-fs/eudev/files: udev-postmount Ian Stakenvicius (axs)
-- strict thread matches above, loose matches on Subject: below --
2013-07-02 19:27 Ian Stakenvicius (axs)
2013-04-11 15:57 Ian Stakenvicius (axs)
2013-04-05 20:45 Ian Stakenvicius (axs)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox