From owner-freebsd-questions Wed Aug 22 20: 5:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by hub.freebsd.org (Postfix) with ESMTP id 7EFD237B408 for ; Wed, 22 Aug 2001 20:05:20 -0700 (PDT) (envelope-from Matthew.Thyer@dsto.defence.gov.au) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au (8.10.1/8.10.1) with ESMTP id f7N34o810485 for ; Thu, 23 Aug 2001 12:34:50 +0930 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Thu, 23 Aug 2001 12:33:14 +0930 Received: from salex001.dsto.defence.gov.au (salex001.dsto.defence.gov.au [131.185.2.9]) by muttley.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id MAA08036 for ; Thu, 23 Aug 2001 12:27:25 +0930 (CST) Received: from fang.dsto.defence.gov.au ([131.185.2.5]) by salex001.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id QFDD9YFL; Thu, 23 Aug 2001 12:27:22 +0930 Received: from dsto.defence.gov.au (fuzz.dsto.defence.gov.au [131.185.75.229]) by fang.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id MAA17161 for ; Thu, 23 Aug 2001 12:27:25 +0930 (CST) Message-ID: <3B84711C.6B81E243@dsto.defence.gov.au> Date: Thu, 23 Aug 2001 12:27:32 +0930 From: Matthew Thyer X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: Default ELF binary type of Linux if unknown ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Instead of having to brandelf when I update Linux programs with new versions, can we have a sysctl that sets the default ELF binary type when it is unknown ? For example, for the Hewlett Packard OpenView OmniBack disk agent (that works fine backing up FreeBSD as long as you dont backup paths that are redirected into the /compat/linux tree) can be automatically updated from the server, however when a new version is pushed out all my backups fail due to the branding issue: {1} file omni/bin/inet omni/bin/inet: setuid setgid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped {2} omni/bin/inet ELF binary type "0" not known. Abort {3} brandelf -t Linux omni/bin/inet {4} omni/bin/inet HP OpenView OmniBack II A.03.50: INET, internal build PHSS_22434/PHSS_22435, built on Fri Nov 10 23:01:36 2000 I know there are people who would not want this on by default so an /etc/rc.conf entry that defaults to "UNKNOWN" would be fine e.g. DEFAULT_ELF_TYPE="SYSV|LINUX|UNKNOWN" (maybe the values should be the type number instead of text) This feature would make Linux image activation so much more useful. I have not thought about the issues for Alpha, PowerPC etc. -- Matthew Thyer Phone: +61 8 8259 7249 Science Corporate Information Systems Fax: +61 8 8259 5537 Defence Science and Technology Organisation, Edinburgh PO Box 1500 Edinburgh South Australia 5111 IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message