On 10/16/13 9:02 PM, Zbigniew Jędrzejewski-Szmek wrote:
On Wed, Oct 16, 2013 at 08:31:02PM +0200, Warpme wrote:
Zbyszku,
I add remount just after pivot_root. No change.
I don't get one thing: why exactly such script works OK for SysV ?
If it works for SysV - it means script leaves / in rw mode.
So it leaves / in rw mode also for systemd (only difference between
SysV and systemd is script last line).
So logic say for me that systemd changes / mode to ro. But why?
br
That's strange. Can you show what 'systemctl show /' shows?
And the "fragment", which is a file specified by FragmentPath=
in the above output, probably /run/systemd/generator/-.mount ?
Zbyszek
Pls find output of
'systemctl show /'
Id=-.mount
Names=-.mount
RequiredBy=local-fs.target tmp.mount media.mount
var-lib-mysql\x2dtemp.mount sys-kernel-config.mount
systemd-journald.socket systemd-ask-password-wall
Before=local-fs.target tmp.mount media.mount var-lib-mysql\x2dtemp.mount
sys-kernel-config.mount systemd-journald.socket
systemd-ask-password-wall.pat
Description=/
LoadState=loaded
ActiveState=active
SubState=mounted
FragmentPath=/run/systemd/generator/-.mount
SourcePath=/etc/fstab
InactiveExitTimestamp=Wed, 2013-10-16 18:30:03 CEST
InactiveExitTimestampMonotonic=2836321
ActiveEnterTimestamp=Wed, 2013-10-16 18:30:03 CEST
ActiveEnterTimestampMonotonic=2836321
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=no
CanStop=no
CanReload=yes
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=yes
RefuseManualStop=yes
AllowIsolate=no
DefaultDependencies=no
OnFailureIsolate=no
IgnoreOnIsolate=yes
IgnoreOnSnapshot=no
DefaultControlGroup=name=systemd:/system/-.mount
ControlGroup=cpu:/system/-.mount name=systemd:/system/-.mount
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
Where=/
What=none
Options=rw,relatime,rw,lowerdir=/rootfs-ro,upperdir=/rw/rootfs
Type=overlayfs
TimeoutUSec=1min 30s
ControlPID=0
DirectoryMode=0755
Result=success
UMask=0022
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=4096
LimitAS=18446744073709551615
LimitNPROC=62989
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=62989
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
:
File
/run/systemd/generator/-.mount
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
DefaultDependencies=no
Before=local-fs.target
[Mount]
What=none
Where=/
Type=auto
FsckPassNo=0
Options=remount,rw
Maybe we should disable [re]mounting / by systemd at all?
br
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel