Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malt3/ddi-tool
Tool for manipulating discoverable disk images (DDIs) in-place.
https://github.com/malt3/ddi-tool
disk-image filesystem linux
Last synced: 22 days ago
JSON representation
Tool for manipulating discoverable disk images (DDIs) in-place.
- Host: GitHub
- URL: https://github.com/malt3/ddi-tool
- Owner: malt3
- License: isc
- Created: 2024-01-30T18:27:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-10T15:04:15.000Z (11 months ago)
- Last Synced: 2024-06-21T15:28:19.049Z (6 months ago)
- Topics: disk-image, filesystem, linux
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddi-tool
Tool for manipulating [discoverable disk images (DDIs)](https://uapi-group.org/specifications/specs/discoverable_disk_image/) in-place.
Currently, it supports in-place patching of the embedded kernel cmdline in the `.cmdline` section of the UKI.
This can be used to update the expected dm-verity roothash or usrhash after building the image.## Installation
```shell-session
git clone https://github.com/malt3/ddi-tool && cd ddi-tool
go install .
```## Usage
```
# build a ddi using systemd-repart
# systemd-repart --json pretty ...
ddi-tool finalize --repart-json repart-output.json --uki-path /EFI/BOOT/BOOTX64.EFI image.raw
```