Use check_chroot_call
This commit is contained in:
parent
a1b7d3639e
commit
43c88567af
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user