Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hopeandtruth6517:storage
calamares
3.3.1-dracut.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3.3.1-dracut.patch of Package calamares
diff -ruN a/src/modules/dracut/main.py b/src/modules/dracut/main.py --- a/src/modules/dracut/main.py 2024-03-20 18:36:55.119997375 -0600 +++ b/src/modules/dracut/main.py 2024-03-20 18:37:55.759996487 -0600 @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/python3 # -*- coding: utf-8 -*- # # === This file is part of Calamares - <https://calamares.io> === @@ -7,15 +7,13 @@ # SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org> # SPDX-FileCopyrightText: 2017 Alf Gaida <agaid@siduction.org> # SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org> -# SPDX-FileCopyrightText: 2022 Anke Boersma <demm@kaosx.us> # SPDX-License-Identifier: GPL-3.0-or-later # # Calamares is Free Software: see the License-Identifier above. # -import subprocess import libcalamares -from libcalamares.utils import target_env_process_output +from libcalamares.utils import target_env_call import gettext @@ -35,20 +33,7 @@ :return: """ - try: - initramfs_name = libcalamares.job.configuration['initramfsName'] - target_env_process_output(['dracut', '-f', initramfs_name]) - except KeyError: - try: - target_env_process_output(['dracut', '-f']) - except subprocess.CalledProcessError as cpe: - libcalamares.utils.warning(f"Dracut failed with output: {cpe.output}") - return cpe.returncode - except subprocess.CalledProcessError as cpe: - libcalamares.utils.warning(f"Dracut failed with output: {cpe.output}") - return cpe.returncode - - return 0 + return target_env_call(['dracut', '-f']) def run(): @@ -59,6 +44,7 @@ :return: """ return_code = run_dracut() + if return_code != 0: - return (_("Failed to run dracut"), - _(f"Dracut failed to run on the target with return code: {return_code}")) + return ( _("Failed to run dracut on the target"), + _("The exit code was {}").format(return_code) )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor