From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by passt.top (Postfix) with ESMTPS id E860F5A02C7 for ; Mon, 13 May 2024 13:57:25 +0200 (CEST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a59ad344f7dso870397266b.0 for ; Mon, 13 May 2024 04:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715601445; x=1716206245; darn=passt.top; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eJlxKqv9CJnb6J1ol7Nvm8j+lgXxgkPVpfCt6PJyMIY=; b=f7GlFbh2XtiTIcRfXNXwkqNsvEkJW/aKEK76S19fYeJ0bDj62pZZ5L4X3474VahUFw 87B15wHDwUTjIGB4UmK12XfY1nJHHyaf18JaUlh5o3GNg9CakI95UxHbFM+8Bdsxmw8s Bn2cJUu+d/TqlusgwXV2bRmK3J0HGAG1aD/eYEgMadhAUPRuFWVgUu99Nt4mwoyvXgI7 Rc65f0vLIcmZdl//oiakRiYo27dPlxuFyqYrhjzYCKasg5oU3duiUV8CkbS8sYilpX3y iYXwIzbzzEERLXxQ5iTiWYL91ZeQL4fTZCwaHTQXKNkvEnWSpUKRSqLNVLKd8WYrtM6L HzuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715601445; x=1716206245; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eJlxKqv9CJnb6J1ol7Nvm8j+lgXxgkPVpfCt6PJyMIY=; b=okjzR46Cvtp5c6/y50EISXCsHI6INztFKVd/R6b8oMDJeSFO7ANdf5QfVebhfnRtzJ x8bwKBlzw7YSTi1AEYHGyVeS3cmaTG7sKMYN8vK+oihsmyBRIbd3bxpU29RRaTTlttt5 i5Q3uuRPXYidjwdINcxo9I1JY/vaKOZZ3q3Lwso1GdOkXehHnyxWIKN3zZ4PxWZE6dUU D/FuN2gY26ufuIaOkUMDCMCgp+zytf39WE5OIh/79EWFZWALSFB8mJE2twbWLeYbE67A iTrFD12XArky7rkDKrNORIeoyELnT0wCPiyv3s8pvFFFGvqvX3uqsHjb4MTPxM+xmouF x0Iw== X-Gm-Message-State: AOJu0YyR6UYSLRLP6aS0/TirNYQ9N+H/Rqggn+bZNgcrg1dJnDmf/7Gu QZ+HbP8UsRSdRI5uSeWWvwJKHmW5P95KX8OgnNo+AE0DOgLFYLuhB7IClmUSxrZvCwUAQLZ9VE6 MjfA5/MGi5aMuGvVAu7pt9jANVfKDM5QArziZMqPs/eWCHyh1D+E= X-Google-Smtp-Source: AGHT+IHuxayPW8r0mohQMLUH4TGd+h6q1ZGsi1p7O8EXw/u7e+2vD/+/vpwlQ2tMM2R8CAYjvFMOYFGGPal69bjdixk= X-Received: by 2002:a50:ab05:0:b0:572:9a99:cae6 with SMTP id 4fb4d7f45d1cf-5734d5c0c62mr5559252a12.15.1715601445430; Mon, 13 May 2024 04:57:25 -0700 (PDT) MIME-Version: 1.0 References: <20240510190301.10528a96@elisabeth> <20240513132138.21af6e3b@elisabeth> In-Reply-To: <20240513132138.21af6e3b@elisabeth> From: Danish Prakash Date: Mon, 13 May 2024 17:26:59 +0530 Message-ID: Subject: Re: Setting hostname while spawning pasta To: Stefano Brivio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-MailFrom: danish.prakash@suse.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: QALF47QMQV46CADTHELQLSODSFPD7FGI X-Message-ID-Hash: QALF47QMQV46CADTHELQLSODSFPD7FGI X-Mailman-Approved-At: Mon, 13 May 2024 20:19:08 +0200 CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: > 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/3a226744dba3189bf94f= 40a857c8c5fa7e848e8f On Mon, May 13, 2024 at 4:52=E2=80=AFPM Stefano Brivio = wrote: > > On Mon, 13 May 2024 13:45:51 +0530 > Danish Prakash 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 reproduc= e > > > 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 >