diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-10-23 17:20:38 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-10-24 10:52:33 +0200 |
commit | 07b4bc1fcd46d61a7d0d101baf0a336f37f3f556 (patch) | |
tree | 8324a6561cbc58f55c63513f371c86c88aaf6d50 /src/utils | |
parent | 569caa733f9bd99a20c7063b0454b8f764e53e0a (diff) |
postinstall: remove call to ogFixBootSector script
Remove call to ogFixBootSector function as it is possibly only
required by Windows XP and FAT filesystem.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/postinstall.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/utils/postinstall.py b/src/utils/postinstall.py index 90b8cc6..279b244 100644 --- a/src/utils/postinstall.py +++ b/src/utils/postinstall.py @@ -140,19 +140,6 @@ def windows_register_c_drive(disk, partition): umount(mountpoint) -def configure_mbr_boot_sector(disk, partition): - cmd_configure = f"ogFixBootSector {disk} {partition}" - - proc = subprocess.run(cmd_configure, - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL, - encoding='utf-8', - shell=True, - check=True) - if proc.returncode != 0: - logging.warning(f'{cmd_configure} returned non-zero exit status {proc.returncode}') - - def configure_fstab(disk, partition): logging.info(f'Configuring /etc/fstab') device = get_partition_device(disk, partition) @@ -188,8 +175,6 @@ def configure_os_windows(disk, partition): _, _, esp_part_number = get_efi_partition(disk, enforce_gpt=True) install_main_grub() - else: - configure_mbr_boot_sector(disk, partition) update_bcd(disk, partition) windows_register_c_drive(disk, partition) |