projects
/
mirror
/
dsa-wiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c5c3d2
)
maybe a fix
author
Peter Palfrader
<peter@palfrader.org>
Wed, 25 Aug 2010 19:41:27 +0000
(21:41 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Wed, 25 Aug 2010 19:41:27 +0000
(21:41 +0200)
input/howto/install-kvm.creole
patch
|
blob
|
history
diff --git
a/input/howto/install-kvm.creole
b/input/howto/install-kvm.creole
index
5c32e5a
..
4e7331f
100644
(file)
--- a/
input/howto/install-kvm.creole
+++ b/
input/howto/install-kvm.creole
@@
-126,16
+126,12
@@
EOF
cat > etc/kernel-img.conf << EOF &&
do_symlinks = no
do_initrd = yes
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
cp -av $dev_boot $dev_boot""1 dev/ &&
chroot . grub-install --modules=part_msdos /dev/`basename $dev_boot` &&
EOF
if [ "$use_boot" != "n" ] ; then
cp -av $dev_boot $dev_boot""1 dev/ &&
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
+141,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 &&