Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enter-chroot fails to enter bionic chroot #4076

Closed
clvgt12 opened this issue Jun 2, 2019 · 2 comments
Closed

enter-chroot fails to enter bionic chroot #4076

clvgt12 opened this issue Jun 2, 2019 · 2 comments

Comments

@clvgt12
Copy link

clvgt12 commented Jun 2, 2019

chronos@localhost /usr/local/bin $ sudo enter-chroot bionic
Entering /mnt/stateful_partition/crouton/chroots/bionic...
-su: 1: bionic: not found
Unmounting /mnt/stateful_partition/crouton/chroots/bionic...
Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/bionic...
chronos@localhost /usr/local/bin $ sudo edit-chroot -all
name: bionic
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/bionic...
crouton: version 1-20190403182822~master:174af0eb
release: bionic
architecture: amd64
xmethod: xiwi
targets: xiwi,xfce
host: version 12236.0.0 (Official Build) dev-channel snappy 
kernel: Linux localhost 4.4.180-16533-g77dd0cb94c17 #1 SMP PREEMPT Wed May 29 14:19:30 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/bionic...

Please describe your issue:

After bionic release installation, enter-chroot fails to complete, unmounts chroot, and exits to host shell.

If known, describe the steps to reproduce the issue:

  1. sudo crouton -r bionic -t xiwi,xfce
  2. sudo enter-chroot bionic
@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Jun 3, 2019

@clvgt12,

That is strange, edit-chroot -all reports a valid bionic chroot but yet it won't let you enter it and shows -

-su: 1: bionic: not found

Try entering your chroot as the root user with -

  • sudo enter-chroot -u root -n bionic

And see if that works, if it does then it may indicate some problems with the normal user's permissions, sometimes these can be sorted in the chroot with: sudo chown -R 1000:1000 "$HOME"

This may be related to a problem with su that is currently affecting certain debian distros, the following pull request will address that once it's reviewed and merged -

Or it could be something else entirely, if any of the above doesn't help come back and let us know and we'll try to dig deeper.

EDIT:
I just now successfully entered my bionic chroot using sudo edit-chroot -n bionic which leads me to believe that there may be a problem with your chroot itself. I would try to do an update to see if that helps, you can use:

  • sudo crouton -n bionic -u

Hope this helps,
-DennisLfromGA

@clvgt12
Copy link
Author

clvgt12 commented Jun 3, 2019

Ok, I removed the previous bionic chroot, reinstalled it using the recreate setups and duplicated the

su: 1: bionic: not found

issue.

Then I ran sudo enter-chroot -u root -n bionic
And verified I could enter the chroot as the root user.
Then I ran

sudo chown -R "1000:1000" /home/user
sudo chown -R "0:0" /root
exit
sudo enter-chroot -n bionic

And now I can enter the chroot. I suppose the reset of the file permissions on the home directories solved the issue...

Thanks...

@clvgt12 clvgt12 closed this as completed Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants