mirror of
https://github.com/rosalinux/image-builder.git
synced 2025-02-23 10:22:50 +00:00
add micro comments
This commit is contained in:
parent
b33981b433
commit
a03aed2198
1 changed files with 3 additions and 0 deletions
3
build.py
3
build.py
|
@ -84,12 +84,15 @@ def main():
|
||||||
print("Skipping U-Boot build.")
|
print("Skipping U-Boot build.")
|
||||||
|
|
||||||
if not skip_rootfs:
|
if not skip_rootfs:
|
||||||
|
# dd here
|
||||||
disk_image_path = create_disk_image(TMP_DIR, config, vendor, device)
|
disk_image_path = create_disk_image(TMP_DIR, config, vendor, device)
|
||||||
if disk_image_path:
|
if disk_image_path:
|
||||||
loop_device = setup_loop_device(disk_image_path)
|
loop_device = setup_loop_device(disk_image_path)
|
||||||
print(f"Loop device setup at {loop_device}")
|
print(f"Loop device setup at {loop_device}")
|
||||||
|
# fdisk, mkfs here
|
||||||
create_partitions(loop_device, config)
|
create_partitions(loop_device, config)
|
||||||
mount_partitions(config, loop_device, TMP_DIR, vendor, device)
|
mount_partitions(config, loop_device, TMP_DIR, vendor, device)
|
||||||
|
# dnf install rootfs here
|
||||||
setup_bootstrap("bootstrap", TMP_DIR, vendor, device, distro, arch)
|
setup_bootstrap("bootstrap", TMP_DIR, vendor, device, distro, arch)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue