[lxc-devel] [lxd/master] add a `shell` alias by default
tych0 on Github
lxc-bot at linuxcontainers.org
Wed May 18 21:56:29 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 377 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160518/fd6dd41b/attachment.bin>
-------------- next part --------------
From 30fa0282583d44eedeac74d205495fe71cdb1c22 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Wed, 18 May 2016 14:52:55 -0700
Subject: [PATCH] add a `shell` alias by default
Closes #1586
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
config.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/config.go b/config.go
index 8c935c5..ea747eb 100644
--- a/config.go
+++ b/config.go
@@ -81,7 +81,9 @@ var DefaultRemotes = map[string]RemoteConfig{
var DefaultConfig = Config{
Remotes: DefaultRemotes,
DefaultRemote: "local",
- Aliases: map[string]string{},
+ Aliases: map[string]string{
+ "shell": "exec @ARGS@ -- login -f root",
+ },
}
// LoadConfig reads the configuration from the config path; if the path does
More information about the lxc-devel
mailing list