[mythtv-users] problems with mkinitrd patch

Nick Morrott knowledgejunkie at gmail.com
Wed Jan 3 16:39:16 UTC 2007


On 02/01/07, s <networks1 at cox.net> wrote:
>
>
>
>
> Hello all.  I am setting up MythTV with Jarrod's instructions using a
> PVR350.  In the section "Running X on the PVR-350's TV-Out-" it has
> instructions for patching mkinitrd.  I downloaded the patch but when I tried
> to apply it I got
>
>
>
> Hunk #1 FAILED at 97.
>
> Hunk #2 succeeded at 725 with fuzz 2 (offset 227 lines).
>
> Hunk #3 succeeded at 825 (offset 42 lines).
>
> Hunk #4 succeeded at 1030 (offset 227 lines).
>
>
>
> In the resulting mkinitrd-ivtv.rej rejects file line 100 which includes the
> [--ivtvdev] argument is flagged.  Anyone know what the problem is?

The source file that is being patched (/sbin/mkinitrd) does not match
the patch file's replacement lines in the first hunk. The current FC6
mkinitrd contains (from line 97):

    $cmd "usage: `basename $0` [--version] [--help] [-v] [-f]
[--preload <module>]"
    $cmd "       [--force-ide-probe] [--force-scsi-probe | --omit-scsi-modules]"
    $cmd "       [--image-version] [--force-raid-probe | --omit-raid-modules]"
    $cmd "       [--with=<module>] [--force-lvm-probe | --omit-lvm-modules]"
**    $cmd "       [--builtin=<module>] [--omit-dmraid]
[--net-dev=<interface>]"  **
    $cmd "       [--fstab=<fstab>] [--nocompress] <initrd-image>
<kernel-version>"
    $cmd ""

The patch file contains:

@@ -97,7 +97,7 @@
     $cmd "       [--force-ide-probe] [--force-scsi-probe |
--omit-scsi-modules]"
     $cmd "       [--image-version] [--force-scsi-probe | --omit-raid-modules]"
     $cmd "       [--with=<module>] [--force-lvm-probe | --omit-lvm-modules]"
-    $cmd "       [--builtin=<module>] [--omit-dmraid]"
+    $cmd "       [--builtin=<module>] [--omit-dmraid] [--ivtvdev]"
     $cmd "       [--fstab=<fstab>] [--nocompress] <initrd-image>
<kernel-version>"
     $cmd ""

Either the patch needs to be rerolled against current source (most
likely), or you'll need to manually check the patch against your
version of /sbin/mkinitrd and apply the patch by hand. It seems the
extra " [--net-dev=<interface>]" on line 100 of the original file is
breaking hunk #1.

I'd drop Jarod an email and create a ticket on Jarod's site to let him
know (not sure if his trac is running at the moment though).

Nick
--
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list