[arch-projects] [PATCH mkinitcpio] ide: add deprecation warning

Tom Gundersen teg at jklm.no
Fri Sep 2 15:44:00 EDT 2011


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 <teg at jklm.no>
Cc: Dan McGee <dpmcgee at gmail.com>
Cc: Thomas Bächler <thomas at archlinux.org>
Cc: Tobias Powalowski <tpowa at archlinux.org>
---
 hooks/ide    |    5 +++++
 install/ide  |    6 ++++--
 install/pata |    2 +-
 3 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 hooks/ide

diff --git a/hooks/ide b/hooks/ide
new file mode 100644
index 0000000..430bdec
--- /dev/null
+++ b/hooks/ide
@@ -0,0 +1,5 @@
+# vim: set ft=sh:
+run_hook ()
+{
+    msg ":: DEPRECATION WARNING: The 'ide' hook is going away, use 'pata' instead."
+}
diff --git a/install/ide b/install/ide
index fa0da51..a648e58 100644
--- a/install/ide
+++ b/install/ide
@@ -11,14 +11,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



More information about the arch-projects mailing list