I have tried patching the 2.4.0 kernel with with supermount patch,
partial text below, but it fails. I get rejects and then no patch. Is
there something obviously wrong with this patch?
Running patch against linux-2.4.0.tar.bz2:
[root@localhost kpatches-2.4.0]# patch -p0 <linux-2.4.0-test12-supermount-0.5.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/fs/Config.in.chmou Thu Nov 9 19:04:42 2000
|+++ linux/fs/Config.in Wed Dec 6 13:20:54 2000
--------------------------
File to patch: /usr/src/source/kernel/linux-2.4.0.tar.bz2
patching file /usr/src/source/kernel/linux-2.4.0.tar.bz2
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file
/usr/src/source/kernel/linux-2.4.0.tar.bz2.rej
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/fs/Makefile.chmou Mon Oct 2 14:54:11 2000
|+++ linux/fs/Makefile Wed Dec 6 13:20:54 2000
--
Text of patchfile through line 14:
--- linux/fs/Config.in.chmou Thu Nov 9 19:04:42 2000
+++ linux/fs/Config.in Wed Dec 6 13:20:54 2000
@@ -7,7 +7,7 @@
bool 'Quota support' CONFIG_QUOTA
tristate 'Kernel automounter support' CONFIG_AUTOFS_FS
tristate 'Kernel automounter version 4 support (also supports v3)' CONFIG_AUTOFS4_FS
-
+tristate 'Supermount removable media support' CONFIG_SUPERMOUNT
dep_tristate 'ADFS file system support' CONFIG_ADFS_FS $CONFIG_EXPERIMENTAL
dep_mbool ' ADFS write support (DANGEROUS)' CONFIG_ADFS_FS_RW $CONFIG_ADFS_FS
$CONFIG_EXPERIMENTAL
--- linux/fs/Makefile.chmou Mon Oct 2 14:54:11 2000
+++ linux/fs/Makefile Wed Dec 6 13:20:54 2000
@@ -60,6 +60,7 @@
Is it simply that I am using the wrong strip option? I am in my patch directory,
/usr/src/kpatches-2.4.0 and running patch from there. I enter "patch -p0 < patchfile"
and when it asks for what file to patch I enter:
/usr/src/source/kernel/linux-2.4.0.tar.bz2
Is there something wrong with this? I have never patched before so I don't know
if I am really doing something evil or not.
-
Against stupidity, the gods themselves contend in vain
----
Praedor