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

Colin Guthrie gmane at colin.guthr.ie
Wed Jun 19 12:25:48 PDT 2013


'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 /etc/mount_truecrypt
> 
> #!/bin/sh
> 
> systemd-ask-password "Please enter the password to mount your
> TrueCrypt volumes..." | truecrypt -t -k ""
> --fs-options="rw,exec,users,async,uid=root,gid=users,umask=077,noatime"
> --mount-options=system --protect-hidden=no /dev/sda1 /media/C >
> /dev/null
> 
> # that is one line, but gmail will probably break it

For more info on this approach see here:
http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents/

But if Tom is correct (and he usually is) that's probably the simplest
route forward.

Col



-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list