Issue enabling application in CHROOT

Issues related to applications and software problems
Post Reply
sillyvainplex
Posts: 2
Joined: 2020/03/14 03:55:56

Issue enabling application in CHROOT

Post by sillyvainplex » 2020/03/14 04:00:28

Hey Guys


I am working on a project with warewulf and I can enable most application in CHROOT but there is one application I am unable too



chroot $CHROOT systemctl enable application
chroot: cannot change root directory to systemctl: No such file or directory

I can enable locally and yes I installed the application in the CHROOT section..

I have been at it for a week..

User avatar
TrevorH
Forum Moderator
Posts: 28867
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issue enabling application in CHROOT

Post by TrevorH » 2020/03/14 04:54:05

If you literally ran chroot $CHROOT systemctl enable application then I'd say that your env variable $CHROOT is not set so it ends up running chroot systemctl enable application which does indeed give that exact error message.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

sillyvainplex
Posts: 2
Joined: 2020/03/14 03:55:56

Re: Issue enabling application in CHROOT

Post by sillyvainplex » 2020/03/14 06:19:59

thank you Trevor for your reply

How do I edit the chroot to modify the environment variable?

Do I edit the local or the chroot part?

Sorry I am new to the CHROOT section but I have been using Linux since 2005 but the CHROOT part I never ever modified it..

Post Reply

Return to “CentOS 7 - Software Support”