With the fix from bug 914169, the only basic change we need in this script is as follows:
121,122c121,122 < mkdir -p $LXC_DIR/rootfs/var/lib/dhcp3 < mkdir -p $LXC_DIR/rootfs/var/lib/dhcp --- > sudo mkdir -p $LXC_DIR/rootfs/var/lib/dhcp3 > sudo mkdir -p $LXC_DIR/rootfs/var/lib/dhcp
We're also interested in making the ssh call more robust by retrying a few times if it fails. Sometimes the sshd has not yet started in the container, so this can give spurious errors. We gave an initial stab at this but do not have a solution yet.
With the fix from bug 914169, the only basic change we need in this script is as follows:
121,122c121,122 rootfs/ var/lib/ dhcp3 rootfs/ var/lib/ dhcp rootfs/ var/lib/ dhcp3 rootfs/ var/lib/ dhcp
< mkdir -p $LXC_DIR/
< mkdir -p $LXC_DIR/
---
> sudo mkdir -p $LXC_DIR/
> sudo mkdir -p $LXC_DIR/
We're also interested in making the ssh call more robust by retrying a few times if it fails. Sometimes the sshd has not yet started in the container, so this can give spurious errors. We gave an initial stab at this but do not have a solution yet.