mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
fastboot.py: add logging
This commit is contained in:
parent
241cee6ef1
commit
e034c48843
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ import subprocess
|
|||
|
||||
|
||||
def fastboot_erase_dtbo():
|
||||
logging.info(f"Fastboot: Erasing DTBO")
|
||||
subprocess.run(
|
||||
[
|
||||
'fastboot',
|
||||
|
@ -14,6 +15,7 @@ def fastboot_erase_dtbo():
|
|||
|
||||
|
||||
def fastboot_flash(partition, file):
|
||||
logging.info(f"Fastboot: Flashing {file} to {partition}")
|
||||
result = subprocess.run([
|
||||
'fastboot',
|
||||
'flash',
|
||||
|
@ -26,6 +28,7 @@ def fastboot_flash(partition, file):
|
|||
|
||||
|
||||
def fastboot_boot(file):
|
||||
logging.info(f"Fastboot: booting {file}")
|
||||
result = subprocess.run([
|
||||
'fastboot',
|
||||
'boot',
|
||||
|
|
Loading…
Add table
Reference in a new issue