Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
x86_64
>
build
> _service:tar_git:0005-Support-Xen-on-MeeGo-OBS.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:0005-Support-Xen-on-MeeGo-OBS.patch of Package build
From a2065c457bb533ad6ea02562dd3260c08eae8b3d Mon Sep 17 00:00:00 2001 From: David Greaves <david@dgreaves.com> Date: Wed, 18 Apr 2012 14:37:41 +0100 Subject: [PATCH] Support Xen on MeeGo OBS Force an extra rw for the Xen kernel Xen needs / remounted rw for the SB2 init. Not sure why yet. --- build | 2 +- initscript_sb2 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build b/build index d352f42..e92ba71 100755 --- a/build +++ b/build @@ -1643,7 +1643,7 @@ for SPECFILE in "${SPECFILES[@]}" ; do echo "on_poweroff = 'destroy'" >> $XEN_CONF_FILE echo "on_reboot = 'destroy'" >> $XEN_CONF_FILE echo "on_crash = 'destroy'" >> $XEN_CONF_FILE - set -- xm create -c $XEN_CONF_FILE name="build_$XENID" $XMROOT $XMSWAP extra="quiet init="$vm_init_script" elevator=noop panic=1 console=ttyS0" + set -- xm create -c $XEN_CONF_FILE name="build_$XENID" $XMROOT $XMSWAP extra="quiet init="$vm_init_script" elevator=noop panic=1 console=ttyS0 rw" if test "$PERSONALITY" != 0 ; then # have to switch back to PER_LINUX to make xm work set -- linux64 "$@" diff --git a/initscript_sb2 b/initscript_sb2 index 0245f92..aa18f85 100644 --- a/initscript_sb2 +++ b/initscript_sb2 @@ -2,6 +2,9 @@ ABUILD_UID=399 ABUILD_GID=399 +# Xen needs the / remounted rw in SB2 +mount -o remount,rw -t ext4 /dev/hda1 / + echo "Setting up abuild user in $BUILD_ROOT for SB2" echo "abuild::${ABUILD_UID}:${ABUILD_GID}:Autobuild:/home/abuild:/bin/bash" >> /etc/passwd echo 'abuild:*:::::::' >>/etc/shadow # This is needed on Mandriva 2009 -- 1.7.10.3