[libcalamaresui] Use mount from partition service

This commit is contained in:
Adriaan de Groot 2019-06-20 12:13:45 +02:00
parent add90e873b
commit 6ba8ac8526

View File

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https://github.com/calamares> === /* === This file is part of Calamares - <https://github.com/calamares> ===
* *
* Copyright 2016, Teo Mrnjavac <teo@kde.org> * Copyright 2016, Teo Mrnjavac <teo@kde.org>
* Copyright 2019, Adriaan de Groot <groot@kde.org>
* *
* Calamares is free software: you can redistribute it and/or modify * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -18,6 +19,7 @@
#include "PythonQtUtilsWrapper.h" #include "PythonQtUtilsWrapper.h"
#include "partition/Mount.h"
#include "utils/CalamaresUtilsSystem.h" #include "utils/CalamaresUtilsSystem.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#include "utils/String.h" #include "utils/String.h"
@ -46,8 +48,7 @@ Utils::mount( const QString& device_path,
const QString& filesystem_name, const QString& filesystem_name,
const QString& options ) const const QString& options ) const
{ {
return CalamaresUtils::System::instance()-> return CalamaresUtils::Partition::mount( device_path, mount_point, filesystem_name, options );
mount( device_path, mount_point, filesystem_name, options );
} }