X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=source%2Fsteps%2FInstallBootstrapFS.py;h=f06bc9120c18ccc5ead3d12bf870991557f1ca26;hb=6dbdbad233ca8770d2f9913c161a3da3f7b8130d;hp=044209725b56775cc6612c57f7f4ddd10b81fcc3;hpb=81695f5ec3f62b1fb7610388bed4825640d9c770;p=bootmanager.git diff --git a/source/steps/InstallBootstrapFS.py b/source/steps/InstallBootstrapFS.py index 0442097..f06bc91 100644 --- a/source/steps/InstallBootstrapFS.py +++ b/source/steps/InstallBootstrapFS.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Copyright (c) 2003 Intel Corporation # All rights reserved. @@ -111,11 +111,11 @@ def Run(vars, upgrade, log): utils.sysexec("mount -t {} {} {}/vservers"\ .format(fstype, PARTITIONS["vservers"], SYSIMG_PATH), log) - if vars['virt']=='lxc': + #if vars['virt']=='lxc': # NOTE: btrfs quota is supported from version: >= btrfs-progs-0.20 (f18+) # older versions will not recongize the 'quota' command. - log.write("Enabling btrfs quota on {}/vservers\n".format(SYSIMG_PATH)) - utils.sysexec_noerr("btrfs quota enable {}/vservers".format(SYSIMG_PATH)) + #log.write("Enabling btrfs quota on {}/vservers\n".format(SYSIMG_PATH)) + #utils.sysexec_noerr("btrfs quota enable {}/vservers".format(SYSIMG_PATH)) vars['ROOT_MOUNTED'] = 1 @@ -277,7 +277,7 @@ def CleanupSysimgBeforeUpgrade(sysimg, target_nodefamily, log): with open("{}/etc/planetlab/virt".format(sysimg)) as infile: installed_virt = infile.read().strip() except Exception as e: - print_exc() + traceback.print_exc() raise BootManagerException("Could not retrieve data about previous installation - cannot upgrade") # moving from vservers to lxc also means another filesystem