diff options
author | Michael Schröder <mls@suse.de> | 2007-02-12 16:31:59 +0000 |
---|---|---|
committer | Michael Schröder <mls@suse.de> | 2007-02-12 16:31:59 +0000 |
commit | 6b30e9ae74ee7d4ce2708fab48829912a784fe2b (patch) | |
tree | 4d95670f937b8bd477f476732c7550f52b2f2116 | |
parent | 26e01bf98c72bb6ddef44a96764c07547979be03 (diff) | |
download | obs-build-6b30e9ae74ee7d4ce2708fab48829912a784fe2b.tar.gz obs-build-6b30e9ae74ee7d4ce2708fab48829912a784fe2b.tar.bz2 obs-build-6b30e9ae74ee7d4ce2708fab48829912a784fe2b.zip |
- pass console=ttyS0 to get console output with new xen versions
-rwxr-xr-x | build | 4 | ||||
-rwxr-xr-x | extractbuild | 2 | ||||
-rw-r--r-- | xen.conf | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -592,9 +592,9 @@ for SPECFILE in $SPECFILES ; do XENID="${XENID##*/}" if test "$PERSONALITY" != 0 ; then # have to switch back to PER_LINUX to make xm work - perl -e 'syscall('$PERSONALITY_SYSCALL', 0); exec(@ARGV) || die("$ARGV[0]: $!\n")' xm create -c $BUILD_DIR/xen.conf name="build:$XENID" $XENMEMORY $XMROOT $XMSWAP extra="init=/.build/build panic=1" + perl -e 'syscall('$PERSONALITY_SYSCALL', 0); exec(@ARGV) || die("$ARGV[0]: $!\n")' xm create -c $BUILD_DIR/xen.conf name="build:$XENID" $XENMEMORY $XMROOT $XMSWAP extra="init=/.build/build panic=1 console=ttyS0" else - xm create -c $BUILD_DIR/xen.conf name="build:$XENID" $XENMEMORY $XMROOT $XMSWAP extra="init=/.build/build panic=1" + xm create -c $BUILD_DIR/xen.conf name="build:$XENID" $XENMEMORY $XMROOT $XMSWAP extra="init=/.build/build panic=1 console=ttyS0" fi if test -n "$XENSWAP" ; then BUILDSTATUS=`dd if="$XENSWAP" bs=12 count=1 2>/dev/null` diff --git a/extractbuild b/extractbuild index 3c8486d..68b4927 100755 --- a/extractbuild +++ b/extractbuild @@ -33,7 +33,7 @@ if ($0 ne '/.build/extractbuild') { my $xmswap= "disk=file:$xenswap,hda2,w"; $xmswap= "disk=phy:$xen,hda2,w" if $xenswap =~ /^\/dev\//; syscall(135, 0); # switch back to PER_LINUX to make xm work - system('xm', 'create', '-c', "$builddir/xen.conf", "name=build:$xenname", $xmroot, $xmswap, "extra=init=/.build/extractbuild panic=1") && die("xm call failed: $?\n"); + system('xm', 'create', '-c', "$builddir/xen.conf", "name=build:$xenname", $xmroot, $xmswap, "extra=init=/.build/extractbuild panic=1 console=ttyS0") && die("xm call failed: $?\n"); exit(0); } @@ -27,7 +27,7 @@ memory = 64 root = "/dev/hda1 ro" # Sets init=build, reboot on panic -extra = "init=/bin/bash panic=1" +extra = "init=/bin/bash console=ttyS0 panic=1" on_poweroff = 'destroy' on_reboot = 'destroy' |