From 5e80fc6bc7c5948b618a88f76fc2a6437e68e3e3 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 26 Jun 2008 14:00:51 +0000 Subject: [PATCH] handle personality switching with qemu --- build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build b/build index 01b32d1..cff2519 100755 --- a/build +++ b/build @@ -959,6 +959,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do -hda $VM_IMAGE \ ${VM_MEMORY:+-m $VM_MEMORY} \ ${XENSWAP:+-hdb $XENSWAP} + if test "$PERSONALITY" != 0 ; then + # have to switch back to PER_LINUX to make qemu work + set -- perl -e 'syscall('$PERSONALITY_SYSCALL', 0); exec(@ARGV) || die("$ARGV[0]: $!\n")' "$@" + fi echo "$@" "$@" fi -- 2.7.4