1 Summary: Tool for converting a physical computer into a Ganeti instance
2 Name: ganeti-p2v-transfer
6 Group: Applications/System
7 Source0: https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
8 # Source0-md5: c0333098304fa1868ffcaa82a942eba0
10 Patch1: kpartx-sync.patch
11 URL: https://code.google.com/p/ganeti/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: docutils
15 BuildRequires: rpmbuild(macros) >= 1.647
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This is a tool for converting a physical computer into a ganeti
32 instance. It consists of two parts, a ganeti instance OS template that
33 allows the instance to be booted to receive the files, and a script
34 that is run on the source machine to make the transfer.
36 A design document is available in doc/design.rst that describes the
37 functioning of the system. This document will focus on getting the
38 system up and running, and the process for actually performing
39 physical-to-virtual transfers.
42 Summary: Source system transfer script.
43 Group: Applications/System
46 This script is run from the transfer OS to establish an SSH connection
47 with the bootstrap OS, mount the source filesystem(s), and copy
48 the data over to the target. It will prompt the user for credentials
49 as necessary to gain access to the bootstrap OS.
64 rm -rf $RPM_BUILD_ROOT
66 %{__make} install-source install-target \
67 DESTDIR=$RPM_BUILD_ROOT
70 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-p2v-target
71 ln -s %{_sysconfdir}/ganeti/instance-p2v-target//variants.list $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list
73 %{__rm} -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc NEWS README* doc/design.* doc/instance-p2v-target.*
81 %dir %{_sysconfdir}/ganeti/instance-p2v-target
82 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/p2v-target.conf
83 %dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes
84 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/10_fix_fstab
85 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/20_remove_persistent_rules
86 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_inittab
87 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_upstart
88 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/40_copy_hostname
89 %dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib
90 %{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib/*.py*
91 %dir %{_sysconfdir}/ganeti/instance-p2v-target/hooks
92 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/clear-root-password
93 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/install-fixes
94 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/interfaces
95 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/ramboot
96 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/xen-hvc0
97 %dir %{_sysconfdir}/ganeti/instance-p2v-target/variants
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants/default.conf
99 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants.list
100 %dir %{_datadir}/ganeti/os/p2v-target
101 %{_datadir}/ganeti/os/p2v-target/common.sh
102 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/create
103 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/export
104 %{_datadir}/ganeti/os/p2v-target/ganeti_api_version
105 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/import
106 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/rename
107 %{_datadir}/ganeti/os/p2v-target/variants.list
108 %attr(755,root,root) %{_sbindir}/make_ramboot_initrd.py
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_sbindir}/p2v_transfer.py