mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
working setup flow + manifest localization
This commit is contained in:
@@ -51,7 +51,7 @@ export class StateService {
|
||||
async attachDrive(password: string | null): Promise<void> {
|
||||
await this.api.attach({
|
||||
guid: this.dataDriveGuid,
|
||||
startOsPassword: password ? await this.api.encrypt(password) : null,
|
||||
password: password ? await this.api.encrypt(password) : null,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -77,8 +77,8 @@ export class StateService {
|
||||
}
|
||||
|
||||
await this.api.execute({
|
||||
startOsLogicalname: this.dataDriveGuid,
|
||||
startOsPassword: password ? await this.api.encrypt(password) : null,
|
||||
guid: this.dataDriveGuid,
|
||||
password: password ? await this.api.encrypt(password) : null,
|
||||
recoverySource,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -43,15 +43,15 @@ export interface InstallOsRes {
|
||||
// === Attach ===
|
||||
|
||||
export interface AttachParams {
|
||||
startOsPassword: T.EncryptedWire | null
|
||||
password: T.EncryptedWire | null
|
||||
guid: string // data drive
|
||||
}
|
||||
|
||||
// === Execute ===
|
||||
|
||||
export interface SetupExecuteParams {
|
||||
startOsLogicalname: string
|
||||
startOsPassword: T.EncryptedWire | null // null = keep existing password (for restore/transfer)
|
||||
guid: string
|
||||
password: T.EncryptedWire | null // null = keep existing password (for restore/transfer)
|
||||
recoverySource:
|
||||
| {
|
||||
type: 'migrate'
|
||||
|
||||
Reference in New Issue
Block a user