[systemd-devel] macros in systemd unit files question
Daniel Wallace
danielwallace at gtmanfred.com
Thu Aug 1 07:45:50 PDT 2013
On Thu, Aug 1, 2013 at 9:41 AM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> '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.
>
Couldn't you just systemctl mask systemd-remount-fs.service
and just keep ro in the kernel line of your bootloader?
Then you just wouldn't remount the filesystem as rw, which
would be what is listed in your fstab.
> 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/
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130801/1fe8508f/attachment-0001.html>
More information about the systemd-devel
mailing list