Fwd: setarch uname 2.6

Jakub Bogusz qboosh at pld-linux.org
Mon Jun 8 18:02:33 CEST 2015


On Mon, Jun 01, 2015 at 11:22:31AM +0300, Elan Ruusamäe wrote:
> pff. managed to post to wrong list
> 
> 
> -------- Original Message --------
> Subject: 	setarch uname 2.6
> Date: 	Sun, 31 May 2015 21:23:51 +0300
> From: 	Elan Ruusamäe <glen at pld-linux.org>
> Reply-To: 	PLD: Users list (English) <pld-users-en at lists.pld-linux.org>
> To: 	pld-users-en at lists.pld-linux.org
> 
> 
> 
> hi
> 
> is pld setarch broken or the tool itself is broken?
> 
> the --uname-2.6 does not seem to work
> and stacking two calls, reset the previous attribs.
> 
> # setarch --uname-2.6 uname -r
> setarch: --uname-2.6: Unrecognized architecture

One must specify arch argument first:

$ LC_ALL=C setarch --help

Usage:
 setarch <arch> [options] [<program> [<argument>...]]
[...]

e.g.:

[qboosh at carme-pld ~]$ uname -a
Linux carme-pld 3.18.10-1 #1 SMP Fri Mar 27 20:49:31 CET 2015 x86_64 Intel(R)_Xeon(R)_CPU___________X5355__ at _2.66GHz PLD Linux
[qboosh at carme-pld ~]$ setarch i686 --uname-2.6 uname -a
Linux carme-pld 2.6.58-1 #1 SMP Fri Mar 27 20:49:31 CET 2015 i686 Intel(R)_Xeon(R)_CPU___________X5355__ at _2.66GHz PLD Linux

> # setarch i686 uname -m
> i686
> 
> # setarch uname26 setarch i686 uname -rm
> 3.14.36-1 i686
> 
> # setarch i686 setarch uname26 uname -rm
> 2.6.54-1 x86_64

Stacking doesn't work as "arch" is personality name.
"uname26" seems to be also separate personality (beside an option).


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list