View previous topic :: View next topic |
Author |
Message |
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Thu Mar 20, 2014 1:26 pm Post subject: Luks Crypt on Root breaks gnu login -f |
|
|
On my other Gentoo systems, the local.d/ is read and used. On this Linux system it doesn't seem to be because the gnu login util is not working/running. I am using Luks Crypt also upon boot up on the root. Would this be why?
Code: | one@localhost ~ $ lr /etc/local.d/
total 26K
drwxr-xr-x 2 root root 4 Mar 13 06:57 .
drwxr-xr-x 78 root root 152 Mar 20 08:01 ..
-rw-r--r-- 1 root root 387 Jun 27 2013 README
-rwx------ 1 root root 179 Mar 13 06:57 local.start
one@localhost ~ $
localhost one # cat /etc/local.d/local.start
/bin/login -f one&
nice -n 15 updatedb&
localhost one # |
Last edited by dman777 on Fri Mar 21, 2014 1:37 pm; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Mar 20, 2014 2:24 pm Post subject: |
|
|
add some kind of touch /run/filethatprovelocalisrun to your script, then check the file presence.
It will remove the blur "is it run or not" |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Thu Mar 20, 2014 2:24 pm Post subject: |
|
|
Make sure the /etc/init.d/local init script is added to the default runlevel. |
|
Back to top |
|
|
jfp Guru
Joined: 08 Jul 2007 Posts: 326 Location: Virginia, USA
|
Posted: Fri Mar 21, 2014 12:48 pm Post subject: |
|
|
Another way to prove it is being run and/or to debug your script might be to use the logger command that is provided by the sys-apps/util-linux-2.22.2 (/usr/bin/logger) package. the text provided to logger is written to (on my system anyway) /var/log/messages _________________ jfp |
|
Back to top |
|
|
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Fri Mar 21, 2014 1:36 pm Post subject: |
|
|
krinn wrote: | add some kind of touch /run/filethatprovelocalisrun to your script, then check the file presence.
It will remove the blur "is it run or not" |
I did this and a file did create. So, for some reason the crypt luks breaks the login gnu utility. On my other Gentoo systems, where I am not using Luks on the root partition, the login -f user works in local.d script. Any ideas or suggestions? |
|
Back to top |
|
|
|