How to use
See examples/
Dependencies
Debian/Ubuntu
# Common
$ sudo apt install python3-parted python3-distutils
# FAT support
$ sudo apt install dosfstools mtools
# ext* support
$ sudo apt install e2fsprogs
# All
$ sudo apt install python3-parted python3-distutils dosfstools mtools e2fsprogs
Fedora/CentOS
# Common
$ sudo dnf install python3-pyparted
# FAT support
$ sudo dnf install dosfstools mtools
# ext* support
$ sudo dnf install e2fsprogs
# All
$ sudo dnf install python3-pyparted dosfstools mtools e2fsprogs
Known issues
mtools and debugfs is not good at error reporting, so if a copy fails it
might not show until you try to mount the image.
Parted misbehaves on some platforms (Debian 10), and shrinks partitions. Use Sfdisk instead. Additionally, some FAT implementations expect the file system to have exactly the same size as the partition, and thus padding them will not work, unless done exactly.
copy_file_range seems to misbehave in containers sometimes, observed on
Fedora 30 + podman with Debian 10 container where it skips to copy some data.
Future
- Configurable alignment
- Optional cleaning ("always", "not on error", "never")
- Proper naive
copy_file_rangefunction, usingdup() - Integrated and automated tests
- GPT for sfdisk partitioner
- Multiboot images (iso, efi, bios)
Metadata
Release files for simplediskimage 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simplediskimage-0.1.3.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simplediskimage-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / simplediskimage-0.1.3.tar.gz
| Download URL | simplediskimage-0.1.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c49c10b695b99b82e49a940abf2885d578e0cecca8aa27758766e7b9bdfc954b
|
|
BLAKE2b-256 checksum How to use checksums |
b6c810c1e5de7714c42f3382fb1da14721fd1dc565b08ab57f549c6f36fc0974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.7.5
|
Release files / simplediskimage-0.1.3-py3-none-any.whl
| Download URL | simplediskimage-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acde6ee0a0f28ec0bba19fc75bc69bc9fb8c31dcc7a396f7ed5ad451b62d4490
|
|
BLAKE2b-256 checksum How to use checksums |
2349d9acc6ddabc90f3760143c6630d224642f2d99ddd6e12993559cf987234c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.7.5
|