• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

Apply .patch to Linux Iso?

Does anyone know how to apply a .patch to a linux iso release?

I need to place the patch shown in the code section to any linux distribution so i can get an install going (apparently my computer xw4600 was blacklisted for a while... looks like this might fix it... but i don't think the patch made it in to v 5.00 of debian)

I've tried the latest ubuntu, jaunty, pc-linux, pc-freebsd, and debian... all end up crashing on install (i did get command prompt  with jaunty-alternate-amd64.iso (installer hit an error at software install point... but i was able to install grub)

Preferable i'd like to use ubuntu or http://cdimage.debian.org/debian-cd/5.0.0/amd64/iso-cd/debian-500-amd64-CD-1.iso


--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -344,6 +344,14 @@ static struct dmi_system_id __initdata a
 		DMI_MATCH(DMI_PRODUCT_NAME, "Macmini1,1"),
 		},
 	},
+	{
+	.callback = init_old_suspend_ordering,
+	.ident = "HP xw4600 Workstation",
+	.matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "HP xw4600 Workstation"),
+		},
+	},
 	{},
 };
 #endif /* CONFIG_SUSPEND */

Open in new window

0
braker15
Asked:
braker15
  • 2
  • 2
1 Solution
 
Maciej SsysadminCommented:
It's a kernel patch, right? So the answer is - you can't. In iso files, you have already built kernels, so patching source files (even if there are any) won't give you anything.
0
 
braker15Author Commented:
it looks like this patch may have been applied in 2.6.27-stable  -> http://patchwork.kernel.org/patch/5490/

Using releases with later kernal builds i am still having issues.  Do you know of any linux release that could get me in a gui environment without issues? I've tried the following:
7.1-RELEASE-amd64-dvd1.iso
7.1-RELEASE-amd64-dvd1.iso.gz
archlinux-2009.02-core-x86_64.iso
debian-500-amd64-DVD-1.iso
debian-500-amd64-DVD-2.iso
debian-500-amd64-DVD-3.iso
debian-500-amd64-DVD-4.iso
F10-i686-Live.iso
Fedora-10-x86_64-DVD.iso
Fedora-10-x86_64-DVD_001.iso
Fedora-11-Alpha-x86_64-DVD.iso
jaunty-alternate-amd64.iso
jaunty-alternate-i386.iso
jaunty-desktop-amd64.iso
mandriva-linux-free-2009.1-dvd-x86_64_001.iso
PCBSD7.0.2-x64-DVD.iso
pclinuxos-2007.iso
0
 
braker15Author Commented:
This isn't an issue anymore, i updated to a newer kernal.  I wanted to clarify something with you oklit.  You said that I apply a patch to an iso (i'd agree with that for sure).  Are you aware that there are sites providing instructions on how to do kernal builds?
http://www.howtoforge.com/kernel_compilation_ubuntu
0
 
Maciej SsysadminCommented:
Yes of course I am :)
But take a look on this page you gave a link to. There is information about applying a patch, and patch is applied to uncompressed kernel sources. Not iso image, nor even compressed file (there is bzip -dc command in front of kernel sources tarball, which means - uncompress first).
As far as I know, in most cases, distribution's installers doesn't offer you building kernel from sources. There are often kernel sources available as a package, but there is also already built kernel which is installed with such installer. After installing, you may of course modify kernel sources and then build your own kernel using this sources (or you can get newer version).
The only distro I know, in which you have to compile your kernel during installation, instead of installing already built, is gentoo. There are maybe some others, but I don't know them (as far as I know, ubuntu, debian, mandriva and a lot of others, come with already built kernel).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now