From 5ea22fb5643f5b08a1d80a027ab4d8a204e7ec39 Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Fri, 26 Apr 2024 10:24:00 +0200 Subject: [PATCH] Replace groupadd with usermod in prepare script groupadd operation fails in noble, use usermod instead. --- sunbeam-python/sunbeam/commands/prepare_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunbeam-python/sunbeam/commands/prepare_node.py b/sunbeam-python/sunbeam/commands/prepare_node.py index 403325f6..1b49d6e4 100644 --- a/sunbeam-python/sunbeam/commands/prepare_node.py +++ b/sunbeam-python/sunbeam/commands/prepare_node.py @@ -52,7 +52,7 @@ # Add $USER to the snap_daemon group supporting interaction # with the sunbeam clustering daemon for cluster operations. -sudo addgroup $USER snap_daemon +sudo usermod --append --groups snap_daemon $USER # Generate keypair and set-up prompt-less access to local machine [ -f $HOME/.ssh/id_rsa ] || ssh-keygen -b 4096 -f $HOME/.ssh/id_rsa -t rsa -N ""