Skip to content

Commit c88cc8e

Browse files
committed
bashrc: fill with the default distro one
With forced colours, because the default prompt is special. Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent caf66bb commit c88cc8e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,12 @@ EOF
999999
echo "PS1='${ps1}'" >>"${BASH_PROFILE}"
10001000
fi
10011001

1002+
# Also in the manual mode + useful misc.
1003+
if ! [ -s "/root/.bashrc" ]; then
1004+
cp -v /etc/skel/.* /root/
1005+
sed -i 's/^#\(force_color_prompt=yes\)/\1/g' /root/.bashrc
1006+
fi
1007+
10021008
if [ -f "${VIRTME_PREPARE_POST}" ]; then
10031009
# shellcheck source=/dev/null
10041010
source "${VIRTME_PREPARE_POST}"

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ VIRTME_GIT_DIR="$(realpath "$(git rev-parse --git-common-dir)")"
1212
VIRTME_REAL_DIR="$(realpath .virtme)"
1313

1414
HOME_DIR="$(realpath "$(dirname "${0}")/.home")"
15+
mkdir -p "${HOME_DIR}"
1516

1617
envs=()
1718
for env in "${!INPUT_@}"; do

0 commit comments

Comments
 (0)