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 <g...@pld-linux.org> > Reply-To: PLD: Users list (English) <pld-users...@lists.pld-linux.org> > To: pld-users...@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@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__@_2.66GHz PLD Linux [qboosh@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__@_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/ _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en