@@ -95,6 +95,7 @@ def __init__(
9595 'assign_mountpoint' : str (_ ('Assign mountpoint' )),
9696 'mark_formatting' : str (_ ('Mark/Unmark to be formatted (wipes data)' )),
9797 'mark_bootable' : str (_ ('Mark/Unmark as bootable' )),
98+ 'mark_xbootldr' : str (_ ('Mark/Unmark as XBOOTLDR' )),
9899 'set_filesystem' : str (_ ('Change filesystem' )),
99100 'btrfs_mark_compressed' : str (_ ('Mark/Unmark as compressed' )), # btrfs only
100101 'btrfs_mark_nodatacow' : str (_ ('Mark/Unmark as nodatacow' )), # btrfs only
@@ -239,6 +240,7 @@ def filter_options(self, selection: DiskSegment, options: list[str]) -> list[str
239240 not_filter += [
240241 self ._actions ['set_filesystem' ],
241242 self ._actions ['mark_bootable' ],
243+ self ._actions ['mark_xbootldr' ],
242244 self ._actions ['btrfs_mark_compressed' ],
243245 self ._actions ['btrfs_mark_nodatacow' ],
244246 self ._actions ['btrfs_set_subvolumes' ]
@@ -296,6 +298,8 @@ def handle_action(
296298 partition .invert_flag (PartitionFlag .BOOT )
297299 if self ._using_gpt :
298300 partition .invert_flag (PartitionFlag .ESP )
301+ case 'mark_xbootldr' :
302+ partition .invert_flag (PartitionFlag .XBOOTLDR )
299303 case 'set_filesystem' :
300304 fs_type = self ._prompt_partition_fs_type ()
301305 if fs_type :
0 commit comments