public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Danish Prakash <danish.prakash@suse.com>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: Setting hostname while spawning pasta
Date: Mon, 13 May 2024 17:26:59 +0530	[thread overview]
Message-ID: <CACVuxaZgxk-_FYQA=mNpunQ0G439hgkVBGUHkLB19w-H-Arx_w@mail.gmail.com> (raw)
In-Reply-To: <20240513132138.21af6e3b@elisabeth>

> At least my rudimentary shell prompt doesn't recognize the
> pasta user namespace and continues to show the same old prompt. I hope
> I'm the only one having this issue.

Sorry for the confusion, it was just me indeed. I was missing a
particular shell sequence expansion from my prompt; fixed now[1].

[1] - https://github.com/danishprakash/dotfiles/commit/3a226744dba3189bf94f40a857c8c5fa7e848e8f

On Mon, May 13, 2024 at 4:52 PM Stefano Brivio <sbrivio@redhat.com> wrote:
>
> On Mon, 13 May 2024 13:45:51 +0530
> Danish Prakash <danish.prakash@suse.com> wrote:
>
> > > But we could still retain the existing hostname and prefix with
> > > something like 'pasta-on-' (sure, we would need to truncate at 63
> > > characters, but it shouldn't be a common case). What do you think?
> >
> > That sounds like a good idea. I didn't realize you'd be running
> > pasta-in-pasta.. but that's reasonable. Though this will be helpful,
> > I'm not entirely sure if this would override the prompts that many
> > have set. At least my rudimentary shell prompt doesn't recognize the
> > pasta user namespace and continues to show the same old prompt. I hope
> > I'm the only one having this issue.
>
> I currently have these behaviours with default prompts:
>
> - Alpine:
>   host:~$ pasta
>   host:~#
>
> - Debian:
>
>   user@host:~$ pasta
>   root@host:~#
>
> - Fedora:
>
>   [user@host ~]$ pasta
>   [root@host ~]#
>
> - openSUSE:
>
>   user@host:~> pasta
>   host:~ #
>
> so I generally have a hint of something going on, but in any case,
> changing the hostname is helpful for unfamiliar users or even just for
> the pasta-in-pasta case I mentioned.
>
> > > What I can't tell from the prompt, though, is at what "level" I'm at
> > > (at least pasta-in-pasta is something I try very commonly to reproduce
> > > pasta's behaviour with particular network setups). Having
> > > root@pasta-on-pasta-on-machine would be a nice plus.
> >
> > But in general, this idea sounds good, I'd like to take a shot at
> > this, and I can send over the patch for you to test once I'm done.
> > What do you think?
>
> Sure, thanks, looking forward to it!
>
> --
> Stefano
>

  reply	other threads:[~2024-05-13 11:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09  7:00 Setting hostname while spawning pasta Danish Prakash
2024-05-10 17:03 ` Stefano Brivio
     [not found]   ` <CACVuxaZEos=JK3XaFGM7d9z+qk-QLeChh7HuGxcdaEfmM02ywg@mail.gmail.com>
2024-05-13 11:21     ` Stefano Brivio
2024-05-13 11:56       ` Danish Prakash [this message]
2024-05-13 11:59 ` Paul Holzinger
2024-05-13 14:28   ` Danish Prakash
2024-05-13 16:02   ` Stefano Brivio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACVuxaZgxk-_FYQA=mNpunQ0G439hgkVBGUHkLB19w-H-Arx_w@mail.gmail.com' \
    --to=danish.prakash@suse.com \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).