Skip to content

Commit

Permalink
fixup! internal/mount: merge mounting code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmxnzo committed Jan 17, 2025
1 parent 5133be5 commit 38e81f2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions initializer/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,6 @@ func setupEncryptedMount(cmd *cobra.Command, _ []string) error {
return nil
}

func mkfsExt4(ctx context.Context, devName string) error {
cmd := exec.CommandContext(ctx, "mkfs.ext4", devName)
out, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("mkfs.ext4: %w, output: %q", err, out)
}
return nil
}

// createInitPassphrase creates a hardcoded string passphrase, to allow formatting the device to LUKS in order to get the UUID.
func createInitPassphrase(pathToPassphrase string) (err error) {
err = os.WriteFile(pathToPassphrase, []byte("init_passphrase"), 0o644)
Expand Down

0 comments on commit 38e81f2

Please sign in to comment.