diff options
author | Michael Schroeder <mls@suse.de> | 2014-07-21 14:51:47 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-07-21 14:51:47 +0200 |
commit | 6743290be0e04855c936c1ef66777218a894666d (patch) | |
tree | 6ae5f1e2ee1f6aa31f46612b264fd998ff02afc2 /build-vm | |
parent | 1725250f4b9976aa9b6bab9ce0d7f38f3c450563 (diff) |
fix vm-lxc on ppc
Diffstat (limited to 'build-vm')
-rw-r--r-- | build-vm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -420,7 +420,7 @@ vm_detect_2nd_stage() { fi RUNNING_IN_VM=true test -e /proc/version || mount -orw -n -tproc none /proc - if test "$VM_TYPE" != lxc; then + if test "$VM_TYPE" != lxc ; then mount -n ${VMDISK_MOUNT_OPTIONS},remount,rw / fi umount /run >/dev/null 2>&1 @@ -643,10 +643,11 @@ vm_first_stage() { test -n "$VM_SWAP" && echo "VM_SWAP='${VM_SWAPDEV//"'"/$Q}'" >> $BUILD_ROOT/.build/build.data test -n "$VMDISK_MOUNT_OPTIONS" && echo "VMDISK_MOUNT_OPTIONS='${VMDISK_MOUNT_OPTIONS//"'"/$Q}'" >> $BUILD_ROOT/.build/build.data PERSONALITY=0 - test -n "$PERSONALITY_SYSCALL" -a "$VM_TYPE" != lxc && PERSONALITY=`perl -e 'print syscall('$PERSONALITY_SYSCALL', 0)."\n"'` + test -n "$PERSONALITY_SYSCALL" && PERSONALITY=`perl -e 'print syscall('$PERSONALITY_SYSCALL', 0)."\n"'` case $(uname -m) in ppc|ppcle|s390) PERSONALITY=8 # ppc/s390 kernel never tells us if a 32bit personality is active, assume we run on 64bit esac + test "$VM_TYPE" = lxc && PERSONALITY=0 echo "PERSONALITY='$PERSONALITY'" >> $BUILD_ROOT/.build/build.data echo "MYHOSTNAME='`hostname`'" >> $BUILD_ROOT/.build/build.data echo -n "definesnstuff=(" >> $BUILD_ROOT/.build/build.data |