Commit aa7b9d0f authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Allow using tmpfs for root/var

This moves "root" and "var" into "build" subdir, allowing you
to create a symlink somewhere (such as /tmp) to put these.
parent 899b85d4
......@@ -5,8 +5,7 @@ packages/SOURCES/*.tar.gz
packages/SOURCES/*.tar.xz
packages/SOURCES/*.tar.bz2
freedesktop-sdk-base
root
var
build
packages/BUILD/
packages/BUILD_XXXXX/
packages/RPMS/
......
......@@ -65,15 +65,15 @@ gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rp
./setup.sh $(IMAGES)/freedesktop-contents-sdk-$(ARCH).tar.gz
./build.sh smart install -y $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
rm -rf gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
tar --transform 's,^root/usr,files,S' -czf gnome-sdk.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf gnome-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
tar --transform 's,^build/root/usr,files,S' -czf gnome-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-sdk-rpmdb.tar.gz build/var/lib/rpm --owner=root
freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz: $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(IMAGES)/freedesktop-contents-sdk-$(ARCH).tar.gz
./build.sh smart install -y $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
rm -rf freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
tar --transform 's,^root/usr,files,S' -czf freedesktop-sdk.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-sdk.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz build/var/lib/rpm --owner=root
freedesktop-platform-base: $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm
......@@ -96,8 +96,8 @@ freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz: freedesktop-platf
-echo building freedesktop-platform
./setup_root.sh $(IMAGES)/freedesktop-contents-platform-$(ARCH).tar.gz
./build.sh rpm -Uvh `cat freedesktop-platform-packages`
tar --transform 's,^root/usr,files,S' -czf freedesktop-platform.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf freedesktop-platform-rpmdb.tar.gz var/lib/rpm --owner=root
tar --transform 's,^build/root/usr,files,S' -czf freedesktop-platform.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf freedesktop-platform-rpmdb.tar.gz build/var/lib/rpm --owner=root
gnome-platform-packages: $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
./setup.sh $(IMAGES)/freedesktop-contents-sdk-$(ARCH).tar.gz
......@@ -108,8 +108,8 @@ gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz: gnome-platform-packages $(NOA
-echo building gnome-platform
./setup_root.sh $(IMAGES)/freedesktop-contents-platform-$(ARCH).tar.gz
./build.sh rpm -Uvh `cat gnome-platform-packages`
tar --transform 's,^root/usr,files,S' -czf gnome-platform.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf gnome-platform-rpmdb.tar.gz var/lib/rpm --owner=root
tar --transform 's,^build/root/usr,files,S' -czf gnome-platform.tar.gz build/root/usr --owner=root
tar --transform 's,^build/var,files,S' -czf gnome-platform-rpmdb.tar.gz build/var/lib/rpm --owner=root
repository:
ostree init --mode=archive-z2 --repo=repository
......
#!/bin/sh
ROOT=`pwd`/root
VAR=`pwd`/var
ROOT=`pwd`/build/root
VAR=`pwd`/build/var
APP=`pwd`/packages
HELPER=`which xdg-app-helper`
......
#!/bin/sh
ROOT=`pwd`/root
VAR=`pwd`/var
if test -L build; then
mkdir -p `readlink -f build`
else
mkdir -p build
fi
ROOT=`pwd`/build/root
VAR=`pwd`/build/var
IMAGE=`readlink -f $1`
rm -rf $ROOT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment