mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Use check_chroot_call
This commit is contained in:
parent
a1b7d3639e
commit
43c88567af
1 changed files with 3 additions and 5 deletions
|
@ -17,16 +17,14 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import libcalamares
|
||||
|
||||
|
||||
def install_grub(boot_loader):
|
||||
install_path = boot_loader["installPath"]
|
||||
ret = libcalamares.utils.chroot_call(["grub-install", install_path])
|
||||
assert ret == 0
|
||||
ret = libcalamares.utils.chroot_call(["grub-mkconfig", "-o", "/boot/grub/grub.cfg"])
|
||||
assert ret == 0
|
||||
libcalamares.utils.check_chroot_call(["grub-install", install_path])
|
||||
libcalamares.utils.check_chroot_call(
|
||||
["grub-mkconfig", "-o", "/boot/grub/grub.cfg"])
|
||||
|
||||
|
||||
def run():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue