(opts: EditOpts)
| 1616 | /// Implementation of the `bootc edit` CLI command. |
| 1617 | #[context("Editing spec")] |
| 1618 | async fn edit(opts: EditOpts) -> Result<()> { |
| 1619 | let storage = &get_storage().await?; |
| 1620 | match storage.kind()? { |
| 1621 | BootedStorageKind::Ostree(booted_ostree) => { |
| 1622 | edit_ostree(opts, storage, &booted_ostree).await |
| 1623 | } |
| 1624 | BootedStorageKind::Composefs(_) => { |
| 1625 | anyhow::bail!("Edit is not yet supported for composefs backend") |
| 1626 | } |
| 1627 | } |
| 1628 | } |
| 1629 | |
| 1630 | /// Implementation of `bootc usroverlay` |
| 1631 | async fn usroverlay(access_mode: FilesystemOverlayAccessMode) -> Result<()> { |
no test coverage detected