From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8E838138A1C for ; Wed, 12 Nov 2014 19:41:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0B49E0919; Wed, 12 Nov 2014 19:41:35 +0000 (UTC) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A0DCE08BB for ; Wed, 12 Nov 2014 19:41:34 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id k15so9089917qaq.1 for ; Wed, 12 Nov 2014 11:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=XyTiRgA978N3G8AQVlgArix6CQ2J/AEGQWLoEiK08IU=; b=fp9yWpfKDBeS0tdFXPQdhbRJZ3kjonTUjG66yLElnsS0KQvI/+sfviFCy62HmrzTMT uRG2eXHlzAw7ZRhv3wm2qhCvCrk/USPqyaioq+CSuu6nBMl8V1lPPdlYLOmeuRD/0wXH iMBwUMcpPgBm2h8qcpOK3WeXJWldLMLOWwx9gYKOFG/MgtDqnCNbszOKKhuOX87nH4Nq I4f8dAJu1jJmahhObnb4TrGVTDw+gxFFbb6CBwvLusEmzY7X7sRBkRDJ7lHJMxt7uamk u5y7LiXMhPBXQky1iiDYMiYunqgQLl7G39WU0W/gbTiEGKxsen4XDNs2Ymepr/RnAVZ+ 4/ow== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.140.82.144 with SMTP id h16mr59407137qgd.40.1415821293654; Wed, 12 Nov 2014 11:41:33 -0800 (PST) Sender: freemanrich@gmail.com Received: by 10.140.102.198 with HTTP; Wed, 12 Nov 2014 11:41:33 -0800 (PST) In-Reply-To: <20141112185020.1f94a404@digimed.co.uk> References: <20141112173401.2c448c65@hactar.digimed.co.uk> <20141112185020.1f94a404@digimed.co.uk> Date: Wed, 12 Nov 2014 14:41:33 -0500 X-Google-Sender-Auth: fbBdCQhXR6OG0NjQ1OC7YI1GfsI Message-ID: Subject: Re: [gentoo-user] Re: gentoo livedvd kernel From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: b1aa7c00-2028-4566-b3b0-2f30bd72be56 X-Archives-Hash: 08c8e34490b5eb2b784a4288022aba22 On Wed, Nov 12, 2014 at 1:50 PM, Neil Bothwick wrote: > On Wed, 12 Nov 2014 18:31:07 +0000 (UTC), James wrote: > >> > 1) Boot from the DVD and copy /proc/config.gz to a >> > writeable device. >> >> cool, this gets me the .config file. >> >> > 2) Copy the kernel from the DVD and use >> > /usr/src/linux/scripts/extract-ikconfig to extract the config. >> >> Ok, I'm not sure where the actual kernel binary is on the livedvd. >> I really want that actual binary. > > I thought you just wanted the config. If you look in the bootloader menu, > either from the menu itself or at its config file on the disc, you will > see the path to the kernel it is using. > > If the live DVD uses GRUB, the config is at grub.cfg as usual. If it uses > isolinux it will be either /isolinux/isolinux.cfg or > /boot/isolinux.isolinux.cfg. > Generally the kernel is the easiest thing to get off of one of those LiveDVDs by just sticking the DVD in a drive and reading it (without booting it). Everything else on the DVD except for the kernel and initramfs and bootloader tends to go in some big squashfs or the like. However, the kernel has to be someplace the bootloader can read it, and that usually means a vmlinuz or whatever on the root directory. You could probably just use the same kernel on your own system, unless it has an embedded command line or initramfs (I forget offhand how overriding either of these works). Most bootloaders tend to not require these, but in some embedded situations you could run into them. Once upon a time the kernel had a BIOS boot sector in the first 512 bytes so you could just dd the kernel onto a disk and boot it (there is still a stub that will tell you to bugger_off_msg if you do that in arch/x86/boot/header.S). (just a bit of trivial there) -- Rich