projects
/
invirt/packages/invirt-autoinstaller.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New guest-based autoinstaller
[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