Skip to content

Commit

Permalink
fix: typo in enter
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Jul 5, 2024
1 parent 152e24b commit 5ee0f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/compose.nu
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export def --env "main compose up" [
--nspawnhub-url: path = $NSPAWNHUB_STORAGE_ROOT # Fallback NspawnHub URL for images
--config-root: path = $MACHINE_CONFIG_PATH # Path where machine configurations are stored
--storage-root: path = $MACHINE_STORAGE_PATH # Path where machines are stored
--machinectl (-m) = true # Use machinectl for operations
--force (-f) # Override existing machines
--config (-c): string # Fallback configuration for all parsed images
--user (-u): string = "root" # Default user to operate on machines
Expand Down Expand Up @@ -57,6 +58,7 @@ export def --env "main compose up" [
--storage-root=($storage_root)
--override=($force)
--yes=($yes)
--machinectl=($machinectl)
--name=($machine.name)
$machine.image?
$machine.tag?
Expand Down
2 changes: 0 additions & 2 deletions src/lib/enter.nu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export def --env "main enter" [
--hostname: string # Hostname that the machine will get
--type: string = "tar" # Type of the machine (change this if running into checking errors)
--vm (-v) # Treat machine as vm -> run with systemd-vmspawn
--share-ipc (-s) # Share IPC into the machine
machine: string # Name of the machine to be logged into
...args: string
] {
Expand Down Expand Up @@ -57,7 +56,6 @@ export def --env "main enter" [
}

(privileged_run
$"--setenv=SYSTEMD_NSPAWN_SHARE_NS_IPC=(if $share_ipc { "1" } else { "" })"
"systemd-nspawn"
"--quiet"
"--set-credential=firstboot.locale:C.UTF-8"
Expand Down

0 comments on commit 5ee0f72

Please sign in to comment.