- remount root rw in xen case, needed if root is not reiserfs
$packrel = $1;
$macros{'release'} = $packrel;
}
- if ($main_preamble && ($line =~ /^ExclusiveArch:\s*(\S+)/i)) {
- $exclarch = $1;
+ if ($main_preamble && ($line =~ /^ExclusiveArch:\s*(.*)/i)) {
+ $exclarch ||= [];
+ push @$exclarch, split(' ', $1);
}
if ($main_preamble && ($line =~ /^(BuildRequires|BuildConflicts|\#\!BuildIgnore):\s*(\S.*)$/i)) {
my $what = $1;
fi
PATH=$BUILD_DIR:$PATH
RUNNING_IN_XEN=true
+ mount -orw -n -tproc none /proc 2>/dev/null
+ mount -n -o remount,rw /
if test -n "$XENSWAP" ; then
for i in 1 2 3 4 5 6 7 8 9 10 ; do
test -e "$XENSWAP" && break
cp -a "$XENSWAP" /.build/swapdev
fi
umount -l /dev 2>/dev/null
- mount -orw -n -tproc none /proc 2>/dev/null
if test -n "$XENSWAP" ; then
rm -f "$XENSWAP"
cp -a /.build/swapdev "$XENSWAP"