We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Apply .patch to Linux Iso?

braker15
braker15 asked
on
Medium Priority
678 Views
Last Modified: 2013-12-06
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

Comment
Watch Question

Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
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.

Author

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

Author

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
sysadmin
CERTIFIED EXPERT
Commented:
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).

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.