aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-05-06 21:37:50 +0200
committerTom Gundersen <teg@jklm.no>2011-05-08 01:41:09 +0200
commitb329364663801e609a56f2f6a19d53bf5c754873 (patch)
treeb87c91e7fe4076733a502c54406c9bf49d25c643 /rc.sysinit
parentbf329c43dc671746e23c1760f9a674c58898aebb (diff)
downloadinitscripts-b329364663801e609a56f2f6a19d53bf5c754873.tar.xz
Revert "udev: do not automatically save persistent net/cd udev rules to /etc on boot"
This fixes FS#24115. The persistent net/cd rules will go away soon, but no replacement is in place yet, so we reinstate the copying magic. This partially reverts commit e9b658239f45d858ff7b30b46441b8733d20f151. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1f2623b..d9d3d27 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -372,6 +372,16 @@ fi
# Set console font if required
set_consolefont
+# Adding persistent network/cdrom generated rules
+# When the rules are generated before /etc is mounted rw they are saved to /run,
+# we therefore need to copy this from /run to /etc. This functionality is going away one day.
+for f in cd net; do
+ [[ -f /dev/.udev/tmp-rules--70-persistent-$f.rules ]] || continue
+ stat_busy "Adding persistent $f udev rules"
+ /bin/cat "/run/udev/tmp-rules--70-persistent-$f.rules" >> "/etc/udev/rules.d/70-persistent-$f.rules"
+ stat_done
+done
+
/bin/dmesg >| /var/log/dmesg.log
run_hook sysinit_end