Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755229AbZCZKR2 (ORCPT ); Thu, 26 Mar 2009 06:17:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754193AbZCZKRT (ORCPT ); Thu, 26 Mar 2009 06:17:19 -0400 Received: from yx-out-2324.google.com ([74.125.44.28]:44445 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbZCZKRS (ORCPT ); Thu, 26 Mar 2009 06:17:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=G8iNmBSLn0+oqOJ6EhrQxxcCNWTg5lFW4Jd4XgBxPb7PeVzpfCJV79YcrUBym+qFDh I0If7Mu1G1vhyL3RFqetI6LiziPJcaix0m4nGap0YxHFF/zhfQHK8WcwFBTrwMeznWYq fGdO/cBp7wT4rOqBrhp4lEQyj9+1OP591qvcY= Date: Thu, 26 Mar 2009 11:17:32 +0100 Message-ID: <874oxgmvur.wl%vmayatsk@redhat.com> From: Vitaly Mayatskikh To: Victoria Muntean Cc: Kernel Linux Subject: Re: how to extract 'uname -r' string from bzImage without booting it ? In-Reply-To: References: User-Agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 499 Lines: 15 At Thu, 26 Mar 2009 12:09:38 +0200, Victoria Muntean wrote: > How can make (or find) a script or utility > that can extract ?'uname -r' string from bzImage without booting it ? $ strings vmlinuz | grep -P -o \\d\\.\\d\\.\\d{2} 2.6.29 -- wbr, Vitaly -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/