diff options
Diffstat (limited to 'src/utils/bios.py')
-rw-r--r-- | src/utils/bios.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/utils/bios.py b/src/utils/bios.py index 916f7d4..6ed0b76 100644 --- a/src/utils/bios.py +++ b/src/utils/bios.py @@ -11,22 +11,6 @@ import os from src.log import OgError -def get_grub_boot_params(mountpoint, device): - grub_conf = f'{mountpoint}/etc/default/grub' - res = [] - - with open(grub_conf, 'r') as f: - for line in f: - if line.find('=') == -1: - continue - key, value = line.split('=', 1) - if key == 'GRUB_CMDLINE_LINUX' or key == 'GRUB_CMDLINE_LINUX_DEFAULT': - value = value.replace('\n', '') - value = value.strip('"') - res.append(value) - res.append(f'root={device}') - return " ".join(res) - def get_vmlinuz_path(mountpoint): linuz_dir = os.path.join(mountpoint, 'boot') target_file = None |