|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
|
|
__version__ = "2.2.15"
|
|
|
|
|
__version__ = "2.2.16"
|
|
|
|
|
__app__ = "calculate-install"
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
@ -26,7 +26,7 @@ from cl_utils import runOsCommand,appendProgramToEnvFile, \
|
|
|
|
|
removeProgramToEnvFile,pathJoin, \
|
|
|
|
|
scanDirectory,process,getTupleVersion, \
|
|
|
|
|
detectDeviceForPartition,listDirectory, \
|
|
|
|
|
cmpVersion
|
|
|
|
|
cmpVersion,STDOUT
|
|
|
|
|
from cl_vars_share import varsShare
|
|
|
|
|
|
|
|
|
|
from cl_kernel_utils import KernelConfig,InitRamFs
|
|
|
|
@ -1545,9 +1545,10 @@ class cl_install(color_print, SignalInterrupt):
|
|
|
|
|
raise DistributiveError(_("Cann't install bootloader"))
|
|
|
|
|
|
|
|
|
|
mbrDisk = self.clVars.Get('os_install_mbr')
|
|
|
|
|
process("sync").success()
|
|
|
|
|
grubProcess = process(cmdGrubInstall,
|
|
|
|
|
"--boot-directory=%s"%target.getBootDirectory(),
|
|
|
|
|
"/dev/%s"%mbrDisk, "-f")
|
|
|
|
|
"/dev/%s"%mbrDisk, "-f", stderr=STDOUT)
|
|
|
|
|
if grubProcess.failed():
|
|
|
|
|
raise DistributiveError(_("Cann't install bootloader"))
|
|
|
|
|
|
|
|
|
|