Use a script for filling the rpms_to_install symlinks automatically

The actual version of core, gui, and xen packages to use are given in version_{core,gui,xen} files
This commit is contained in:
Joanna Rutkowska 2011-07-02 14:34:17 +02:00
parent 8c5ed2777b
commit 7c37e25aa1
18 changed files with 27 additions and 13 deletions

7
README
View File

@ -9,8 +9,11 @@ fedorize_image <image> <file-with-packets-lists>
NOTE: The fedorize_image script can be also used to update an image -- it
automatically assumes the update mode if the <image> already exists.
2) Update symlinks in rpms_to_install_XXX/ so that they point to the current version
of Qubes-specific rpms to install you want to use (e.g. qubes-gui-vm, etc).
2) Update symlinks in rpms_to_install/ using the create_symlinks_in_rpms_to_install_dir.sh script. The script
reads the core, gui, and xen packages versions from version_{core,gui,xen} files and creates appropriate symlinks
in rpms_to_install/ dir.
Verify that all symlinks are correct.
3) Now, you can "qubeize" the image. This must be done as root. E.g.:

View File

@ -0,0 +1,17 @@
#!/bin/bash
rm -fr rpms_to_install/*
VERSION_CORE=$(cat version_core)
ln -s ../../core/rpm/x86_64/qubes-core-appvm-$VERSION_CORE.rpm rpms_to_install/qubes-core-appvm
ln -s ../../core/rpm/x86_64/qubes-core-appvm-libs-$VERSION_CORE.rpm rpms_to_install/qubes-core-appvm-libs
ln -s ../../core/rpm/x86_64/qubes-core-commonvm-$VERSION_CORE.rpm rpms_to_install/qubes-core-commonvm
ln -s ../../core/rpm/x86_64/qubes-core-netvm-$VERSION_CORE.rpm rpms_to_install/qubes-core-netvm
ln -s ../../core/rpm/x86_64/qubes-core-proxyvm-$VERSION_CORE.rpm rpms_to_install/qubes-core-proxyvm
VERSION_GUI=$(cat version_gui)
ln -s ../../gui/rpm/x86_64/qubes-gui-vm-$VERSION_GUI.rpm rpms_to_install/qubes-gui-vm
VERSION_XEN=$(cat version_xen)
ln -s ../../xen/rpm/x86_64/xen-libs-$VERSION_XEN.rpm rpms_to_install/xen-libs
ln -s ../../xen/rpm/x86_64/xen-licenses-$VERSION_XEN.rpm rpms_to_install/xen-licenses
ln -s ../../xen/rpm/x86_64/xen-qubes-vm-essentials-$VERSION_XEN.rpm rpms_to_install/xen-qubes-vm-essentials

View File

@ -1 +0,0 @@
rpms_to_install_x64

1
rpms_to_install/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*

View File

@ -1 +0,0 @@
../../core/rpm/x86_64/qubes-core-appvm-1.6.4-1.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../core/rpm/x86_64/qubes-core-appvm-libs-1.6.4-1.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../core/rpm/x86_64/qubes-core-commonvm-1.6.4-1.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../core/rpm/x86_64/qubes-core-netvm-1.6.4-1.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../core/rpm/x86_64/qubes-core-proxyvm-1.6.4-1.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../gui/rpm/x86_64/qubes-gui-vm-1.3.1-2.fc14.x86_64.rpm

View File

@ -1 +0,0 @@
../../xen/rpm//x86_64/xen-libs-4.1.0-4.qubes.x86_64.rpm

View File

@ -1 +0,0 @@
../../xen/rpm//x86_64/xen-licenses-4.1.0-4.qubes.x86_64.rpm

View File

@ -1 +0,0 @@
../../xen/rpm/x86_64/xen-qubes-vm-essentials-4.1.0-4.qubes.x86_64.rpm

View File

@ -3,7 +3,7 @@
# This includes the VM's root image, patched with all qubes rpms, etc
#
%{!?version: %define version %(cat version_appvm)}
%{!?version: %define version %(cat version)}
Name: qubes-template-%{template_name}
Version: %{version}

1
version_core Normal file
View File

@ -0,0 +1 @@
1.6.6-1.fc14.x86_64

1
version_gui Normal file
View File

@ -0,0 +1 @@
1.3.1-2.fc14.x86_64

1
version_xen Normal file
View File

@ -0,0 +1 @@
4.1.0-4.qubes.x86_64