Package: readahead
Version: 1:1.20060421.1016-5
Severity: normal
Tags: patch

Hi,

ionice is not needed to start readahead-list with an idle priority. By using 
s-s-d's -I option there's no need to depend on /usr being mounted and on 
ionice being installed.

Attached patch should do it.

Cheers,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
--- unpacked/etc/init.d/readahead	2009-03-31 13:07:03.000000000 -0600
+++ /etc/init.d/readahead	2009-06-27 19:06:49.000000000 -0500
@@ -37,11 +37,11 @@
         # If "profile" is placed on the kernel command-line we watch the boot
         # sequence and generate new readahead lists, rather than read the lists
         if ! grep -q "profile" /proc/cmdline && test ! -f /etc/readahead/profile-once; then
-            if [ "$RUN_IN_BACKGROUND" = "true" -a -e "/usr/bin/ionice" ]; then
+            if [ "$RUN_IN_BACKGROUND" = "true" ]; then
                log_begin_msg "Reading files needed to boot (in background)..."
                 if /sbin/start-stop-daemon --background --start --quiet \
-                    --pidfile /var/run/readahead-list.bogus \
-                    --startas /usr/bin/ionice -- -c3 /sbin/readahead-list -s /etc/readahead/boot; then
+                    --pidfile /var/run/readahead-list.bogus -I idle \
+                    --startas /sbin/readahead-list -- -s /etc/readahead/boot; then
                     log_end_msg 0
                 else
                     log_end_msg $?

Reply via email to