Skip to content
Snippets Groups Projects
Commit 43c88567 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Use check_chroot_call

parent a1b7d363
No related branches found
No related tags found
No related merge requests found
...@@ -17,16 +17,14 @@ ...@@ -17,16 +17,14 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Calamares. If not, see <http://www.gnu.org/licenses/>. # along with Calamares. If not, see <http://www.gnu.org/licenses/>.
import libcalamares import libcalamares
def install_grub(boot_loader): def install_grub(boot_loader):
install_path = boot_loader["installPath"] install_path = boot_loader["installPath"]
ret = libcalamares.utils.chroot_call(["grub-install", install_path]) libcalamares.utils.check_chroot_call(["grub-install", install_path])
assert ret == 0 libcalamares.utils.check_chroot_call(
ret = libcalamares.utils.chroot_call(["grub-mkconfig", "-o", "/boot/grub/grub.cfg"]) ["grub-mkconfig", "-o", "/boot/grub/grub.cfg"])
assert ret == 0
def run(): def run():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment