Preliminary support for building in DispVM
This commit is contained in:
parent
5166ca5388
commit
ce319754e2
4
Makefile
4
Makefile
@ -36,6 +36,10 @@ rpms:
|
||||
./build_template_rpm $(TEMPLATE_NAME) || exit 1; \
|
||||
./create_template_list.sh || : \
|
||||
|
||||
rootimg-build:
|
||||
sudo -E ./prepare_image prepared_images/$(TEMPLATE_NAME).img && \
|
||||
sudo -E ./qubeize_image prepared_images/$(TEMPLATE_NAME).img $(TEMPLATE_NAME)
|
||||
|
||||
update-repo-installer:
|
||||
[ -z "$$UPDATE_REPO" ] && UPDATE_REPO=../installer/yum/qubes-dom0;\
|
||||
ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-$(shell cat build_timestamp_$(DIST))*.noarch.rpm $$UPDATE_REPO/rpm
|
||||
|
@ -9,4 +9,4 @@ fi
|
||||
|
||||
rm -f $APPSTMPL/*
|
||||
mkdir -p $APPSTMPL
|
||||
find $APPSORIG -name "*.desktop" -exec ./convert_app2template.sh {} $APPSTMPL \;
|
||||
find $APPSORIG/ -name "*.desktop" -exec ./convert_app2template.sh {} $APPSTMPL \;
|
||||
|
@ -1,11 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "-> Initializing RPM database..."
|
||||
rpm --initdb --root=$INSTALLDIR
|
||||
rpm --import --root=$INSTALLDIR $SCRIPTSDIR/keys/*
|
||||
if ! [ -f "${INSTALLDIR}/tmp/.prepared_base" ]; then
|
||||
echo "-> Initializing RPM database..."
|
||||
rpm --initdb --root=$INSTALLDIR
|
||||
rpm --import --root=$INSTALLDIR $SCRIPTSDIR/keys/*
|
||||
|
||||
echo "-> Installing core RPM packages..."
|
||||
rpm -i --root=$INSTALLDIR $SCRIPTSDIR/base_rpms/*.rpm || exit 1
|
||||
echo "-> Installing core RPM packages..."
|
||||
rpm -i --root=$INSTALLDIR $SCRIPTSDIR/base_rpms/*.rpm || exit 1
|
||||
|
||||
touch "${INSTALLDIR}/tmp/.prepared_base"
|
||||
fi
|
||||
|
||||
cp $SCRIPTSDIR/resolv.conf $INSTALLDIR/etc
|
||||
cp $SCRIPTSDIR/network $INSTALLDIR/etc/sysconfig
|
||||
|
@ -35,7 +35,7 @@ Qubes template for %{template_name}
|
||||
%build
|
||||
cd qubeized_images
|
||||
rm -f root.img.part.*
|
||||
tar --sparse -cf - %{template_name}-root.img | split -d -b 1G - root.img.part.
|
||||
tar --sparse --dereference -cf - %{template_name}-root.img | split -d -b 1G - root.img.part.
|
||||
cd ..
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user