Author: bryan
Date: 2006-11-25 19:19:04 -0700 (Sat, 25 Nov 2006)
New Revision: 7874
Modified:
trunk/bootscripts/CHANGELOG
trunk/bootscripts/lfs/init.d/udev_retry
Log:
Current bootscripts don't work with rule_generator udev rules, because we run
udevtrigger before / is mounted read-write. We need to copy the generated rules
to /etc/udev/rules.d as part of udev_retry. Code was copied from Debian
testing's udev package.
Modified: trunk/bootscripts/CHANGELOG
===================================================================
--- trunk/bootscripts/CHANGELOG 2006-11-25 19:47:06 UTC (rev 7873)
+++ trunk/bootscripts/CHANGELOG 2006-11-26 02:19:04 UTC (rev 7874)
@@ -1,3 +1,9 @@
+n/a - November 25, 2006
+ * Copy Debian's "copy generated rules" initscript code, to clean up
+ when the rule_generator scripts run before / is writable. (Since
+ the rule_generator code is from Debian, I assume their cleanup code
+ is appropriate.) (Bryan)
+
n/a - October 15, 2006
* Make udev_retry script work with udev >= 099. (Bryan)
Modified: trunk/bootscripts/lfs/init.d/udev_retry
===================================================================
--- trunk/bootscripts/lfs/init.d/udev_retry 2006-11-25 19:47:06 UTC (rev
7873)
+++ trunk/bootscripts/lfs/init.d/udev_retry 2006-11-26 02:19:04 UTC (rev
7874)
@@ -18,6 +18,16 @@
case "${1}" in
start)
boot_mesg "Retrying failed uevents, if any..."
+
+ # From Debian: "copy the rules generated before / was mounted
+ # read-write":
+ for file in /dev/.udev/tmp-rules--*; do
+ dest=${file##*tmp-rules--}
+ [ "$dest" = '*' ] && break
+ cat $file >> /etc/udev/rules.d/$dest
+ rm -f $file
+ done
+
# Re-trigger the failed uevents in hope they will succeed now
/sbin/udevtrigger --retry-failed
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page