You are not logged in.

#1 2013-01-14 12:20:13

dfulger
Member
Registered: 2013-01-14
Posts: 2

[SOLVED] How can I echo something in /proc/fs before remote fs mount?

I am not new to Linux but I am new to systemd and Arch Linux.
I think I need to write a systemd unit in /etc/systemd/system/myprocsettings.service like this:
[Unit]
Description=Write my settings in /proc
Before=remote-fs-pre.target
After=local-fs.target
DefaultDependencies=no

[Service]
ExecStart=/bin/sh -c 'modprobe cifs && sleep 2 && echo 0x27 > /proc/fs/cifs/SecurityFlags'
Type=oneshot

[Install]
WantedBy=remote-fs-pre.target

and then enable it with systemctl enable myprocsettings.service.

Is this correct? Am I going to break anything? Do I need to systemctl load before enable?

Last edited by dfulger (2013-01-18 10:41:35)

Offline

#2 2013-01-15 00:31:04

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] How can I echo something in /proc/fs before remote fs mount?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2013-01-18 10:40:15

dfulger
Member
Registered: 2013-01-14
Posts: 2

Re: [SOLVED] How can I echo something in /proc/fs before remote fs mount?

It works now. I have updated my initial post with the version of the file that finally worked.

Offline

Board footer

Powered by FluxBB