sudo mount -t sysfs sys /mnt/$local_fqdn/sys
mountpoint -q /mnt/$local_fqdn/dev ||
sudo mount --bind /dev /mnt/$local_fqdn/dev
-if test -d /mnt/$local_fqdn/root/src/vm/.git
+if test -d /mnt/$local_fqdn/root/src/$local_hostname/.git
then
- mountpoint -q /mnt/$local_fqdn/root/src/vm ||
- sudo mount --bind "$tool" /mnt/$local_fqdn/root/src/vm
+ mountpoint -q /mnt/$local_fqdn/root/src/$local_hostname ||
+ sudo mount --bind "$tool" /mnt/$local_fqdn/root/src/$local_hostname
else
- sudo rsync -a "$tool"/ /mnt/$local_fqdn/root/src/vm
+ sudo rsync -a "$tool"/ /mnt/$local_fqdn/root/src/$local_hostname
fi
sudo chroot /mnt/$local_fqdn /bin/bash || true
"$tool"/host/chroot-clean