Go CLI using cobra with mount, unmount, status, and init subcommands. Unlocks via udisks2 D-Bus (passphrase/keyfile) or cryptsetup (FIDO2/TPM2) with ordered method fallback. Includes NixOS-specific LD_LIBRARY_PATH injection for systemd cryptsetup token plugins. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
355 B
Go
20 lines
355 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package plan9
|
|
|
|
import "syscall"
|
|
|
|
func fixwd() {
|
|
syscall.Fixwd()
|
|
}
|
|
|
|
func Getwd() (wd string, err error) {
|
|
return syscall.Getwd()
|
|
}
|
|
|
|
func Chdir(path string) error {
|
|
return syscall.Chdir(path)
|
|
}
|