LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Anybody's business
User Name
Password

Notices


Should I log my journey through linuxquestions.org?
Let's go...
Rate this Entry

Login > no mount > systemctl start unit > joy. ?!

Posted 07-03-2022 at 05:39 AM by Ninguém
Updated 07-03-2022 at 03:32 PM by Ninguém (Added the volatile unit experience.)

When I login I want my projects directory to be mounted from a server somewhere using sshfs.
When I login, the mount unit fails.
But if I then issue:
Code:
$ systemcts --user start path-to-projects-dir.mount
It doesn't fail!
I already set the unit to wait for gnome-keyring-daemon.service to start...
WTF?!
Posted the question here.

While I'm still dealing with this, I implemented another unit (a service unit, this time) and it's working great:
Code:
[Unit]
Description=Creation of volatile space
ConditionPathIsDirectory=!/dev/shm/volatile

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/mkdir -m 700 /dev/shm/volatile
ExecStop=/usr/bin/rm --force --recursive /dev/shm/volatile

[Install]
WantedBy=default.target
Now, every time I login a space for "volatile" data is created and I can write sensitive information there without ever writing it to disk.
And it's destroyed when I logout.
:-)
Posted in Questions
Views 257 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration