mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-09-02 02:34:29 +00:00
vphone-cli: Add --disk-size to vm create
`vm create` built the orchestrator Options without setting diskSizeGB, so the disk was pinned to the 64 GB default no matter what. The downstream plumbing (Options.diskSizeGB -> NewBundleSpec -> sparse Disk.img truncate) already existed; this just exposes `-d/--disk-size` on the command and threads it through, matching the existing `vm new` convention. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
committed by
zqxwce
co-authored by
Claude Fable 5
parent
4397dc7d49
commit
1ceef58106
@@ -16,6 +16,7 @@ struct VPhoneVMCreateCommand: ParsableCommand {
|
||||
@Option(name: [.customShort("V"), .long], help: "variant: regular | dev | jb | exp | less") var variant: String = "regular"
|
||||
@Option(name: .shortAndLong, help: "iPhone IPSW URL or local path") var iphoneSource: String?
|
||||
@Option(name: .shortAndLong, help: "cloudOS IPSW URL or local path") var cloudosSource: String?
|
||||
@Option(name: .shortAndLong, help: "Disk size (GB)") var diskSize: UInt64 = 64
|
||||
@Option(name: .shortAndLong, help: "sudo password for the CFW host-mount install (via askpass; never logged)")
|
||||
var sudoPassword: String?
|
||||
@Option(name: [.customShort("b"), .long], help: "(exp only) rewrite ProductBuildVersion to this build id") var spoofBuild: String?
|
||||
@@ -41,7 +42,8 @@ struct VPhoneVMCreateCommand: ParsableCommand {
|
||||
iphoneSource: sources.iphoneSource, cloudosSource: sources.cloudosSource,
|
||||
sudoPassword: sudoPassword, spoofBuild: spoofBuild, forceDSCMaxSlide: forceDSCMaxSlide,
|
||||
rootPopup: rootPopup,
|
||||
interactive: interactive, verbosity: VPhoneVerbosity(count: verboseCount),
|
||||
interactive: interactive, diskSizeGB: diskSize,
|
||||
verbosity: VPhoneVerbosity(count: verboseCount),
|
||||
keepArtifacts: keepArtifacts))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user