Current udev does not work well with the IDE subsystem, so we should encourage 
users to move to the ATA subsystem instead (using the pata hook).

We should probably get rid of the IDE subsystem from the kernel altogether at 
some point (so people don't end up using it by accedint). Dan successfully 
debugged and fixed the only blocker that I'm aware of 
<https://bugzilla.kernel.org/show_bug.cgi?id=41582>, but there might of course 
be others.

Signed-off-by: Tom Gundersen <[email protected]>
Cc: Dan McGee <[email protected]>
Cc: Thomas B�chler <[email protected]>
Cc: Tobias Powalowski <[email protected]>
---

v2: add warning also on install, as suggested by Dan. Also make the messages 
more scary by using the err/error functions.

 hooks/ide    |    5 +++++
 install/ide  |    7 +++++--
 install/pata |    2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)
 create mode 100644 hooks/ide

diff --git a/hooks/ide b/hooks/ide
new file mode 100644
index 0000000..bba036c
--- /dev/null
+++ b/hooks/ide
@@ -0,0 +1,5 @@
+# vim: set ft=sh:
+run_hook ()
+{
+    err "The 'ide' hook is going away, use 'pata' instead."
+}
diff --git a/install/ide b/install/ide
index fa0da51..29bb02f 100644
--- a/install/ide
+++ b/install/ide
@@ -2,6 +2,7 @@
 
 build()
 {
+    error "The 'ide' hook is going away, please use 'pata' instead."
     MODULES=" $(checked_modules "/ide/" | grep -v "legacy") ";
 
     MODULES=$(echo ${MODULES}) #trim whitespace
@@ -11,14 +12,16 @@ build()
 
     BINARIES=""
     FILES=""
-    SCRIPT=""
+    SCRIPT="ide"
 }
 
 help ()
 {
 cat<<HELPEOF
   This hook loads the necessary modules for an ide root device,
-  using the old ide subsystem.
+  using the deprecated ide subsystem. This does not work well with
+  current userspace, and will be removed from the kernel in an upcoming
+  release. Please use the "pata" hook instead.
   Detection will take place at runtime. To minimize the modules
   in the image, add the autodetect hook too.
 HELPEOF
diff --git a/install/pata b/install/pata
index 75a75c1..603f01f 100644
--- a/install/pata
+++ b/install/pata
@@ -11,7 +11,7 @@ build() {
 help() {
     cat<<HELPEOF
 This hook loads the necessary modules for a pata (ide) root device, using the
-new libata subsystem. Detection will take place at runtime. To minimize the
+libata subsystem. Detection will take place at runtime. To minimize the
 modules in the image, add the autodetect hook too.
 HELPEOF
 }
-- 
1.7.6.1

Reply via email to