drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

Cannot find /etc/rc.local #36

Closed ijaaz closed 10 years ago

ijaaz commented 10 years ago

I am trying to use cron in an arch chroot, but am having issues finding /etc/rc.local. I also have issues starting ssh, and am unsure what I am doing wrong, this what happened:

 =)> /usr/bin/sshd                                                            ~
Could not load host key: /etc/ssh/ssh_host_key
Disabling protocol version 1. Could not load host key
sshd: no hostkeys available -- exiting.
AsavarTzeth commented 10 years ago

Arch uses systemd, meaning you obviously will not find "/etc/rc.local". The proper way to edit your crontab is using "crontab -e", as the user who will run it.

As for starting ssh, I have no solution. I would like to use systemctl to start it with systemd, but that does not seem to work in a chroot-environment.

drinkcat commented 10 years ago

@mtello : Regarding ssh, run ssh-keygen -A to generate the keys and try again. I'm not sure to understand what is the problem with cron, can you give more details?

(oh, and sorry for the long delay, if it wasn't for @AsavarTzeth I would have forgotten about this...)

drinkcat commented 10 years ago

Accidentally closed the wrong issue, but this is old, so closing anyway. Please repen it it's still a problem.