-
Notifications
You must be signed in to change notification settings - Fork 11
docs: Fix various errors #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # HACKING | ||
|
|
||
| See [../HACKING.md](../HACKING.md) for development instructions. | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||
| # Contributing | ||||||
|
|
||||||
| We welcome contributions to bcvk! Please see [docs/HACKING.md](../HACKING.md) for detailed development instructions. | ||||||
| We welcome contributions to bcvk! Please see [../HACKING.md](../HACKING.md) for detailed development instructions. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For better readability and consistency with other files, it's generally preferred to use a clean name for the link text rather than a relative path. How about using
Suggested change
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,69 +1,4 @@ | ||
| # Disk Images | ||
|
|
||
| The `to-disk` command creates bootable disk images from bootc containers. | ||
|
|
||
| ## Supported Formats | ||
|
|
||
| ```bash | ||
| # Raw disk image (default) | ||
| bcvk to-disk quay.io/fedora/fedora-bootc:42 output.img | ||
|
|
||
| # QCOW2 (compressed, for QEMU/KVM) | ||
| bcvk to-disk --format qcow2 quay.io/fedora/fedora-bootc:42 output.qcow2 | ||
|
|
||
| # VHD (Hyper-V, Azure) | ||
| bcvk to-disk --format vhd quay.io/fedora/fedora-bootc:42 output.vhd | ||
|
|
||
| # VMDK (VMware) | ||
| bcvk to-disk --format vmdk quay.io/fedora/fedora-bootc:42 output.vmdk | ||
| ``` | ||
|
|
||
| ## Configuration Options | ||
|
|
||
| ```bash | ||
| # Disk size | ||
| bcvk to-disk --size 50G quay.io/fedora/fedora-bootc:42 output.img | ||
|
|
||
| # Filesystem type | ||
| bcvk to-disk --filesystem xfs quay.io/fedora/fedora-bootc:42 output.img | ||
| bcvk to-disk --filesystem ext4 quay.io/fedora/fedora-bootc:42 output.img | ||
|
|
||
| # Partitioning scheme | ||
| bcvk to-disk --partition gpt quay.io/fedora/fedora-bootc:42 output.img | ||
| bcvk to-disk --partition mbr quay.io/fedora/fedora-bootc:42 output.img | ||
| ``` | ||
|
|
||
| ## Common Use Cases | ||
|
|
||
| ### Cloud Deployment | ||
|
|
||
| ```bash | ||
| # AWS/GCP (raw format) | ||
| bcvk to-disk --format raw --size 30G quay.io/fedora/fedora-bootc:42 cloud.img | ||
|
|
||
| # Azure (VHD format) | ||
| bcvk to-disk --format vhd --size 30G quay.io/fedora/fedora-bootc:42 azure.vhd | ||
| ``` | ||
|
|
||
| ### Bare Metal | ||
|
|
||
| ```bash | ||
| # Create bootable USB/SD card image | ||
| bcvk to-disk --size 16G quay.io/fedora/fedora-bootc:42 usb.img | ||
| sudo dd if=usb.img of=/dev/sdX bs=4M status=progress | ||
| ``` | ||
|
|
||
| ### Virtualization | ||
|
|
||
| ```bash | ||
| # QEMU/KVM | ||
| bcvk to-disk --format qcow2 quay.io/fedora/fedora-bootc:42 vm.qcow2 | ||
| qemu-system-x86_64 -hda vm.qcow2 -m 2048 -enable-kvm | ||
|
|
||
| # VMware | ||
| bcvk to-disk --format vmdk quay.io/fedora/fedora-bootc:42 vm.vmdk | ||
|
|
||
| # VirtualBox (requires conversion) | ||
| bcvk to-disk --format raw quay.io/fedora/fedora-bootc:42 vm.img | ||
| VBoxManage convertfromraw vm.img vm.vdi | ||
| ``` | ||
| The `to-disk` command creates disk images from bootc containers. | ||
| It is a wrapper for [bootc install to-disk](https://bootc-dev.github.io/bootc/man/bootc-install-to-disk.8.html). | ||
|
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While it's great that you're removing incorrect information, this change removes all examples, making the documentation less helpful. The To improve usability, please consider restoring a few corrected examples to give users a quick and accurate starting point. For example: # Disk Images
The `to-disk` command creates disk images from bootc containers.
It is a wrapper for [bootc install to-disk](https://bootc-dev.github.io/bootc/man/bootc-install-to-disk.8.html), but provides its own options for disk creation and runs the installation inside an ephemeral VM.
## Examples
### Basic Usage
To create a default raw disk image:
```bash
bcvk to-disk quay.io/fedora/fedora-bootc:42 output.imgSpecifying Format and SizeTo create a 20GB qcow2 image: bcvk to-disk --format qcow2 --disk-size 20G quay.io/fedora/fedora-bootc:42 output.qcow2Custom FilesystemTo use the xfs filesystem: bcvk to-disk --filesystem xfs quay.io/fedora/fedora-bootc:42 output.img |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better readability, it's generally preferred to use a clean name for the link text rather than a relative path. How about using
HACKING.mdas the link text?