Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Luks Crypt on Root breaks gnu login -f
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 777

PostPosted: Thu Mar 20, 2014 1:26 pm    Post subject: Luks Crypt on Root breaks gnu login -f Reply with quote

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
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4651

PostPosted: Thu Mar 20, 2014 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
fturco
Apprentice
Apprentice


Joined: 08 Dec 2010
Posts: 290
Location: Italy

PostPosted: Thu Mar 20, 2014 2:24 pm    Post subject: Reply with quote

Make sure the /etc/init.d/local init script is added to the default runlevel.
Back to top
View user's profile Send private message
kingjames
n00b
n00b


Joined: 21 Mar 2014
Posts: 3

PostPosted: Fri Mar 21, 2014 11:19 am    Post subject: Reply with quote

perhaps the discussion in this thread helps:

https://forums.gentoo.org/viewtopic-t-938692-start-0.html

good luck.
Back to top
View user's profile Send private message
jfp
Apprentice
Apprentice


Joined: 08 Jul 2007
Posts: 277
Location: Virginia, USA

PostPosted: Fri Mar 21, 2014 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 777

PostPosted: Fri Mar 21, 2014 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum