sipb-xen-losetup: a half-sane way to use losetup
[invirt/packages/invirt-autoinstaller.git] / partial / copying-installer.sh
1 #!/bin/bash
2 # hda is the copying-installer image itself
3 # hdb is unused (was the source image)
4 # hdc is the target image
5 # hdd is the arguments image
6
7 exec 3</dev/hdd
8 read -r -u 3 HOSTNAME
9 read -r -u 3 ROOTPW
10 exec 3<&-
11
12 mount /dev/hdc1 /mnt/new
13 /mnt/new/post-copy /mnt/new "$HOSTNAME" "$ROOTPW"
14 umount /mnt/new
15 sync