Some partition ui stuff

This commit is contained in:
Jonathan Carter
2026-01-11 21:19:29 +02:00
parent d823bdd251
commit 7eec15b7df
9 changed files with 92 additions and 12 deletions

View File

@@ -47,6 +47,23 @@ def disks_partition(part):
partition=partition)
@bp.route('/disks/details/<disk>')
def disks_details(disk):
"""
Show some details about a disk.
"""
blockdevs = lsblk.list_block_devices()
return render_template('disks_details.html', disk=disk, blockdevs=blockdevs)
@bp.route('/disks/wipe_table/<disk>')
def disks_wipe_table(disk):
"""
Create a new partition table
"""
return render_template('disks_wipe_partition.html', disk=disk)
def build_menu():
"""
Define menu items and paths.