Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-20 Thread Lennart Poettering
On Wed, 19.06.13 14:52, Natanji (nata...@gmail.com) wrote: Hi everyone, I'm somewhat new to systemd and have a problem. I would like to run a custom script with systemd on startup that will ask me for a password and mount a Truecrypt volume with it. The script and unit file I wrote can be

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-20 Thread Natanji
Thanks everyone for pointing me in the right direction. I managed to solve the problem with your help; short report incoming in case anyone is interested. Simon's suggested approach worked quite nicely just right out of the box, however it didn't fix the problem. In fact, my old script still does

[systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-19 Thread Natanji
Hi everyone, I'm somewhat new to systemd and have a problem. I would like to run a custom script with systemd on startup that will ask me for a password and mount a Truecrypt volume with it. The script and unit file I wrote can be found below. Now, this setup does work *somewhat* - basically it

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-19 Thread Peeters Simon
2013/6/19 Natanji nata...@gmail.com: Hi everyone, I'm somewhat new to systemd and have a problem. I would like to run a custom script with systemd on startup that will ask me for a password and mount a Truecrypt volume with it. The script and unit file I wrote can be found below. Now, this

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-19 Thread Tom Gundersen
Didn't cryptsetup recently get TC support? Could you use that (i.e. /etc/crypttab? On Jun 19, 2013 6:01 PM, Peeters Simon peeters.si...@gmail.com wrote: 2013/6/19 Natanji nata...@gmail.com: Hi everyone, I'm somewhat new to systemd and have a problem. I would like to run a custom script

Re: [systemd-devel] Text input on startup (tty-force) disabling after a few seconds

2013-06-19 Thread Colin Guthrie
'Twas brillig, and Peeters Simon at 19/06/13 16:51 did gyre and gimble: It might be a bug in the tty-force handling, but this is not a usecase for tty-force, you would be better of using systemd-ask-password I sugest you drop the StandardInput=tty-force from the service file and use this as