ogclient/src/utils
Alejandro Sirgo Rica 3350c30353 cache: add cache.json to track cache metadata
Track partitions and images associated to a restore
operation through a cache.json file located in the
cache partition.

cache.json example contents:
{
    'images': [
        {
            'name': 'xxx.img',
            'disk': 1,
            'partition': 2
        },
        {
            'name': 'xxx.img',
            'disk': 1,
            'partition': 3
        }
    ]
}

Add class CacheDataFile to handle the cache.json
file.

Add an entry to the 'images' array each time a
restore operation is executed successfuly,
replace entries with the same disk/partition.

Remove entry to the 'images' array with image delete
operations.

Add image info to kiosk configuration. This enables
image restore operations. This information is not
retroactive, only newly restored images will enable
the restore button in Kiosk.
2025-02-14 13:57:46 +01:00
..
bcd.py bcd: make recovery modifications optional 2024-09-10 15:37:08 +02:00
bios.py src: update license header 2024-11-28 16:45:56 +01:00
boot.py src: update license header 2024-11-28 16:45:56 +01:00
cache.py cache: add cache.json to track cache metadata 2025-02-14 13:57:46 +01:00
disk.py winreg: move disk id functions into disk.py 2025-01-07 15:56:55 +01:00
fs.py src: update license header 2024-11-28 16:45:56 +01:00
fstab.py src: update license header 2024-11-28 16:45:56 +01:00
grub.py grub: move disabled boot entries at the end of boot order 2025-02-05 09:42:38 +01:00
hw_inventory.py hw_inventory: fix json parsing 2024-12-11 15:17:02 +01:00
image.py src: update license header 2024-11-28 16:45:56 +01:00
menu.py src: update license header 2024-11-28 16:45:56 +01:00
net.py kiosk: add client data to boot view 2025-02-14 13:57:46 +01:00
postinstall.py src: update license header 2024-11-28 16:45:56 +01:00
probe.py src: refactor windows hive code 2024-12-11 15:16:34 +01:00
sw_inventory.py src: refactor windows hive code 2024-12-11 15:16:34 +01:00
tiptorrent.py src: update license header 2024-11-28 16:45:56 +01:00
uefi.py uefi: log efibootmgr errors as warnings 2025-02-13 09:06:38 +01:00
winreg.py winreg: move disk id functions into disk.py 2025-01-07 15:56:55 +01:00