~ydubreuil/vmbuilder/proxy-support

« back to all changes in this revision

Viewing changes to VMBuilder/plugins/ubuntu/oneiric.py

  • Committer: Michael Vogt
  • Date: 2011-08-17 12:09:07 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110817120907-ukjqeynl3tftt84d
VMBuilder/plugins/ubuntu/oneiric.py: add small sleep to ensure /dev in the chroot is no longer busy after debootstrap finished

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    You should have received a copy of the GNU General Public License
17
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
#
19
 
from   VMBuilder.plugins.ubuntu.natty import Natty
 
19
import time
 
20
from VMBuilder.plugins.ubuntu.natty import Natty
20
21
 
21
22
class Oneiric(Natty):
22
 
    pass
 
23
 
 
24
    def unmount_dev(self):
 
25
        # no idea why, but something keep /dev busy briefly during the
 
26
        # bootstrap
 
27
        time.sleep(1)
 
28
        super(Oneiric, self).unmount_dev()