From: | thelma@×××××××××××.com |
---|---|
To: | Gentoo mailing list <gentoo-user@l.g.o> |
Subject: | [gentoo-user] bash scrip prompt after bootstrap |
Date: | Fri, 30 Mar 2018 16:33:50 |
Message-Id: | 6783b3da-3aa5-d419-877d-a2b436497c79@sys-concept.com |
1 | I'm using a scrip to log-in/boot strap the system over NFS |
2 | |
3 | ----- |
4 | #!/bin/sh |
5 | |
6 | HOST=${0##*/} |
7 | HOST=${HOST#*-} |
8 | ROOT=/mnt/${HOST} |
9 | ... |
10 | exec chroot '${ROOT}' /bin/bash -l |
11 | --- |
12 | |
13 | When I'm presented with bash prompt, it is the same as the one I logged |
14 | IN from. So to eliminate the confusion I would like to change (add to) |
15 | the bash prompt the "HOST' name I log-in to. |
16 | |
17 | When I log-in I'm presented with: "syscon3 #" |
18 | I would like it to be: ROOT+HOST |
19 | eg.: syscon3-eden |
20 | |
21 | -- |
22 | Thelma |
Subject | Author |
---|---|
Re: [gentoo-user] bash scrip prompt after bootstrap | Bas Zoutendijk <slzoutendijk@×××××.com> |