[systemd-devel] macros in systemd unit files question

Colin Guthrie gmane at colin.guthr.ie
Thu Aug 1 07:41:02 PDT 2013


'Twas brillig, and lux-integ at 01/08/13 15:25 did gyre and gimble:
> On Thursday 01 August 2013 12:58:46 Tom Gundersen wrote:
>> 'm not following. Do you mean that systemd is already doing what you
>> need,
> 
> 
> not sure  as I am just learning 
> 
> 
> ...but suppose 
> I have already mounted   proc, run and sys  
> and I want just a read only root filesystem 
> 
> --a)  how do  I get  systemd to mount a   nonRW  root filesystem    and not 
> bother with anything  in fstab.?  OR
> --b) could I  have  an fstab  with  /  -o,ro?
> ( and if so what would systemd-remount-fs.service do ?)

Exactly the same as with sysvinit - just set the options in fstab.

Or if you don't want an fstab then set the options in the -.mount unit
instead.

The systemd-remount-fs.service will then basically be a no-op if the
options don't change.

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