projects
/
mirror
/
dsa-wiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
duplicate line
[mirror/dsa-wiki.git]
/
input
/
howto
/
install-kvm.creole
diff --git
a/input/howto/install-kvm.creole
b/input/howto/install-kvm.creole
index
5c32e5a
..
71e0658
100644
(file)
--- a/
input/howto/install-kvm.creole
+++ b/
input/howto/install-kvm.creole
@@
-121,21
+121,18
@@
EOF
chroot . apt-get update &&
echo "Apt::Install-Recommends 0;" > etc/apt/apt.conf.d/local-recommends &&
chroot . apt-get install net-tools iproute ifupdown dialog vim netbase xfsprogs &&
chroot . apt-get update &&
echo "Apt::Install-Recommends 0;" > etc/apt/apt.conf.d/local-recommends &&
chroot . apt-get install net-tools iproute ifupdown dialog vim netbase xfsprogs &&
- cp -av
$dev_root dev/
&&
+ cp -av
`readlink -f $dev_root` dev/`basename $dev_root`
&&
DEBIAN_FRONTEND=noninteractive chroot . apt-get install grub2 &&
cat > etc/kernel-img.conf << EOF &&
do_symlinks = no
do_initrd = yes
DEBIAN_FRONTEND=noninteractive chroot . apt-get install grub2 &&
cat > etc/kernel-img.conf << EOF &&
do_symlinks = no
do_initrd = yes
-EOF
- # install a kernel image
- chroot . apt-get install linux-image-2.6-amd64 &&
- cat >> etc/kernel-img.conf << EOF &&
-postinst_hook = update-grub
-postrm_hook = update-grub
EOF
if [ "$use_boot" != "n" ] ; then
EOF
if [ "$use_boot" != "n" ] ; then
- cp -av $dev_boot $dev_boot""1 dev/ &&
+ cp -av `readlink -f $dev_boot` dev/`basename $dev_boot` &&
+ cp -av `readlink -f $dev_boot""1` dev/`basename $dev_boot`1 &&
chroot . grub-install --modules=part_msdos /dev/`basename $dev_boot` &&
chroot . grub-install --modules=part_msdos /dev/`basename $dev_boot` &&
+ # install a kernel image
+ chroot . apt-get install linux-image-2.6-amd64 &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
echo "(hd0) /dev/`basename $dev_boot`" > boot/grub/device.map &&
chroot . update-grub &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
echo "(hd0) /dev/`basename $dev_boot`" > boot/grub/device.map &&
chroot . update-grub &&
@@
-145,6
+142,8
@@
EOF
echo && echo && echo && echo "Hardly tested, expect this to fail." && echo && echo && echo &&
echo "(hd0) /dev/`basename $dev_root`" > boot/grub/device.map &&
chroot . grub-install /dev/"`basename $dev_root`" &&
echo && echo && echo && echo "Hardly tested, expect this to fail." && echo && echo && echo &&
echo "(hd0) /dev/`basename $dev_root`" > boot/grub/device.map &&
chroot . grub-install /dev/"`basename $dev_root`" &&
+ # install a kernel image
+ chroot . apt-get install linux-image-2.6-amd64 &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
chroot . update-grub
fi &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
chroot . update-grub
fi &&