dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc
BSD 3-Clause "New" or "Revised" License
8.52k stars 1.24k forks source link

crosh shell missing localhost #5007

Open Joyful108 opened 10 months ago

Joyful108 commented 10 months ago
Please paste the output of the following command here: command not found

Trying to use crosh in dev mode to complete linix install. Problem is "lacalhost" isnt displayed after typing shell. Instead of chronos@localhost it's chronos@frostflow-rev3

This is a compleatly new machine, and the device is still named localhost. Downloaded crouton then went to install but entered only part of the command and it didn't properly install. Now it's stuck without access to file directory.

If known, describe the steps to reproduce the issue:

betapictoris commented 10 months ago

Can you please provide what message appears when you attempt to install Crouton, and also what command you're using? The hostname being frostflow-rev3, while strange, shouldn't exactly be the problem.

DennisLfromGA commented 10 months ago

@Joyful108,

No worries, it's just the PS1 prompt that has changed recently, if you run hostname you'll find that it is still 'localhost'.

The new PS1 prompt is set using the script: /etc/bash/bashrc.d/01-prompt.sh, the actual routine is shown below:

if [[ ! -f /run/dont-modify-ps1-for-testing ]]; then
  PS1="$(
    hostname="$(cat /run/chromeos-config/v1/name 2>/dev/null || hostname)"
    board_id="$(crossystem board_id 2>/dev/null || true)"

    if [[ -n "${board_id}" ]]; then
      hostname+="-rev${board_id}"
    fi

    echo "${PS1//\\h/${hostname}}"
  )"
fi

If you don't like it you could just run this command as root :

Note: on version M117+ they removed the sudo command in the crosh shell so you may have to run that command as root from VT-2.

-DennisLfromGA

liam-prog commented 1 month ago
Please paste the output of the following command here: command not found

Trying to use crosh in dev mode to complete linix install. Problem is "lacalhost" isnt displayed after typing shell. Instead of chronos@localhost it's chronos@frostflow-rev3

This is a compleatly new machine, and the device is still named localhost. Downloaded crouton then went to install but entered only part of the command and it didn't properly install. Now it's stuck without access to file directory.

If known, describe the steps to reproduce the issue:

Please paste the output of the following command here: command not found

Trying to use crosh in dev mode to complete linix install. Problem is "lacalhost" isnt displayed after typing shell. Instead of chronos@localhost it's chronos@frostflow-rev3

This is a compleatly new machine, and the device is still named localhost. Downloaded crouton then went to install but entered only part of the command and it didn't properly install. Now it's stuck without access to file directory.

If known, describe the steps to reproduce the issue:

Dude You arent using dev mode to enable it put device into recovery mode by holding esc refresh and power buttons. Then press Ctrl+d to enable dev mode now the system will get out of recovery mode and say OS Verification is Off press Ctrl+d to boot to chromeOS and it will transition to dev mode! Now when its done setup the device and enjoy