git.annexia.org
/
virt-p2v.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix new path to RPM.
[virt-p2v.git]
/
p2v.ks.in
diff --git
a/p2v.ks.in
b/p2v.ks.in
index
b69c185
..
940b1f9
100644
(file)
--- a/
p2v.ks.in
+++ b/
p2v.ks.in
@@
-25,10
+25,17
@@
auth --useshadow --enablemd5
selinux --enforcing
firewall --disabled
selinux --enforcing
firewall --disabled
+# Basic Fedora repo.
repo --name=released --baseurl=@CD_BASE_URL@
#repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-@CD_BASE@&arch=@CD_ARCH@
repo --name=released --baseurl=@CD_BASE_URL@
#repo --name=released --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-@CD_BASE@&arch=@CD_ARCH@
-%packages
+# A local repository if selected by ./configure --enable-localrepo=...
+@LOCALREPO@
+
+# The p2vrepo subdirectory, containing virt-p2v RPM.
+repo --name=p2v --baseurl=file://@abs_top_builddir@/p2vrepo
+
+%packages --excludedocs
bash
kernel
syslinux
bash
kernel
syslinux
@@
-53,19
+60,14
@@
openssh-clients
nc
# For the shell script
nc
# For the shell script
-dialog
grep
sed
gawk
findutils
grep
sed
gawk
findutils
-# For OCaml
-ocaml
-ocaml-runtime
-ocaml-pcre
-ocaml-extlib
-ocaml-xml-light
-ocaml-libvirt
+# For IP configuration
+iproute
+net-tools
# For network configuration
dhclient
# For network configuration
dhclient
@@
-81,6
+83,9
@@
vim-enhanced
bind-utils
file
bind-utils
file
+# virt-p2v package and its deps
+virt-p2v
+
%post --nochroot
%post --nochroot
@@
-94,7
+99,6
@@
if test "x$INSTALL_ROOT" = "x"; then ERROR=1; fi
if ! test -d "$INSTALL_ROOT/usr/bin"; then ERROR=1; fi
if ! test -d "@abs_top_srcdir@"; then ERROR=1; fi
if ! test -d "@abs_top_srcdir@/extras"; then ERROR=1; fi
if ! test -d "$INSTALL_ROOT/usr/bin"; then ERROR=1; fi
if ! test -d "@abs_top_srcdir@"; then ERROR=1; fi
if ! test -d "@abs_top_srcdir@/extras"; then ERROR=1; fi
-if ! test -f "@abs_top_srcdir@/virt-p2v"; then ERROR=1; fi
if test "x$ERROR" = "x1"; then
echo "**************************************************"
if test "x$ERROR" = "x1"; then
echo "**************************************************"
@@
-108,15
+112,6
@@
if test "x$ERROR" = "x1"; then
exit 1
fi
exit 1
fi
-install -m 0755 -o root -g root \
- @abs_top_srcdir@/virt-p2v \
- @abs_top_srcdir@/virt-p2v-update-wrapper \
- @abs_top_srcdir@/iso-attach \
- $INSTALL_ROOT/usr/bin
-
-install -m 0644 -o root -g root @abs_top_srcdir@/inittab \
- $INSTALL_ROOT/etc
-
cp -a $INSTALL_ROOT/etc/lvm $INSTALL_ROOT/etc/lvm.new
install -m 0644 -o root -g root @abs_top_srcdir@/lvm.conf \
$INSTALL_ROOT/etc/lvm.new
cp -a $INSTALL_ROOT/etc/lvm $INSTALL_ROOT/etc/lvm.new
install -m 0644 -o root -g root @abs_top_srcdir@/lvm.conf \
$INSTALL_ROOT/etc/lvm.new
@@
-153,4
+148,9
@@
touch /media/.hal-mtab
# Make some mountpoints.
mkdir /mnt/root
# Make some mountpoints.
mkdir /mnt/root
+# Remove some unused files.
+rm -rf /usr/share/man ;# 20 MB
+#rm -rf /usr/share/doc ;# 44 MB
+#rm -rf /usr/share/locale ;# 60 MB
+
%end
%end