Fix expected get_boot_config to return folder
This commit is contained in:
parent
5bb26d8d98
commit
242d1275ac
1 changed files with 1 additions and 1 deletions
|
|
@ -747,7 +747,7 @@ boot_dir = "/boot/firmware" if shell.isdir("/boot/firmware") else "/boot"
|
|||
|
||||
# If neither directory is valid, use shell.get_boot_config()
|
||||
if not shell.isdir(boot_dir):
|
||||
boot_dir = shell.get_boot_config()
|
||||
boot_dir = os.path.dirname(shell.get_boot_config())
|
||||
|
||||
# Final safeguard: Ensure boot_dir is actually a directory and not a file path
|
||||
if boot_dir is None or not shell.isdir(boot_dir):
|
||||
|
|
|
|||
Loading…
Reference in a new issue