[systemd-devel] macros in systemd unit files question

lux-integ lux-integ at btconnect.com
Thu Aug 1 03:53:06 PDT 2013


On Wednesday 31 July 2013 14:36:25 Colin Guthrie wrote:
> Mount units have to be named specially after their mount points, so be
> careful there e.g. if the mount point is /mnt/mymountpoint then the unit
> should be called mnt-mymountpoint.mount

thanks for your reply

Now I have an init script to  translate to systemd with this:-
/bin/echo  "Remounting root file system in read-write mode..."
/bin/mount -n -o remount,rw / >/dev/null


which I translate to systemd-speak ( mount file ) as 
#------------------------
[Unit]
Description=Remounting root file system in read-write mode...
#After=dev.mount
#Before=


[Mount]
What=/
Where=/
Options=remount,rw
#-----------------

what do I call this file?
rootfs.mount ?
(and if so would it not contradict with the What and Where in [Mount] ?

or
/.mount 
(which I doubt would be allowed)

advice will be apreciated

sincerely
luxInteg 


More information about the systemd-devel mailing list