Skip to content

Commit

Permalink
fish: user_setup: Try using systemd-nspawn by default on aarch64 and …
Browse files Browse the repository at this point in the history
…x86_64 systems

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Dec 30, 2024
1 parent e5064a6 commit 7541138
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fish/functions/user_setup.fish
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,15 @@ rpmbuild/' >>$gitignore
end
end

switch $LOCATION-(uname -m)
case hetzner'*' workstation'*' vm-x86_64
switch (uname -m)
case aarch64 x86_64
ln -fnrsv $configs/tmux/.tmux.conf.nspawn $HOME/.tmux.conf.container

# These platforms are guaranteed to use tmux so ensure the tmux
# These platforms will more than likely use tmux so ensure the tmux
# directory exists with the expected permissions so that sd_nspawn
# will find it and mount it into the container properly. This is
# not necessarily safe to do if the platform is not going to use tmux.
# will find it and mount it into the container properly. Even if they
# do not use tmux, creating the directory and passing it through to
# the container is not the end of the world, as no socket will exist.
set tmux_tmp /var/tmp/tmux-(id -u)
mkdir -p $tmux_tmp
# tmux checks that the permissions are restrictive
Expand Down

0 comments on commit 7541138

Please sign in to comment.