From b2e2db6cecefbf2d3976ab71b30cc14dc181d4ec Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 15 Sep 2010 23:43:08 +0200 Subject: [PATCH] squeeze makes dev/mapper things symlinks, so we will have to chase them --- input/howto/install-kvm.creole | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/input/howto/install-kvm.creole b/input/howto/install-kvm.creole index 4e7331f..00fb724 100644 --- a/input/howto/install-kvm.creole +++ b/input/howto/install-kvm.creole @@ -68,7 +68,7 @@ trivial. ####### # install base - apt-get install debootstrap debian-archive-keyring kpartx && + apt-get install debootstrap debian-archive-keyring kpartx chase && if [ "$use_lvm" = "y" ]; then if [ "$use_boot" != "n" ] ; then lvcreate -L 128m -n "$guest"-boot /dev/"$vg" @@ -121,14 +121,15 @@ 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 && - cp -av $dev_root dev/ && + cp -av `chase $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 EOF if [ "$use_boot" != "n" ] ; then - cp -av $dev_boot $dev_boot""1 dev/ && + cp -av `chase $dev_boot` dev/`basename $dev_boot` && + cp -av `chase $dev_boot""1` dev/`basename $dev_boot`1 && chroot . grub-install --modules=part_msdos /dev/`basename $dev_boot` && # install a kernel image chroot . apt-get install linux-image-2.6-amd64 && -- 2.20.1