[systemd-devel] systemd-shutdown static linking (was: Please proof-read: ...)
Ross Lagerwall
rosslagerwall at gmail.com
Mon Jun 10 06:10:40 PDT 2013
On Mon, Jun 10, 2013 at 12:33:01PM +0200, Lennart Poettering wrote:
> This is really weird... (Though unrelated to systemd-shutdown, as this
> is generated before we execute it, replacing PID 1).
>
> -.mount is the mount unit is something we do not try to unmount at
> shutdown from normal systemd, as that's impossible to do at that
> point. The other file systems have a Conflicts=umount.target to get them
> unmounted at shutdown, but -.mount explicitly doesn.t
>
> Ross, how exactly did you shutdown to get this? What does "systemctl
> show -- -.mount" show you? Does it any Conflicts= line?
>
As root: halt
I have attached the output of "systemctl show -- -.mount" and /etc/fstab
and /proc/cmdline.
I see that Conflicts=umount.target is set, though I have no idea why.
I haven't changed too much in the setup, at least not related to
mounting.
Regards
--
Ross Lagerwall
-------------- next part --------------
Id=-.mount
Names=-.mount
RequiredBy=local-fs.target proc-sys-fs-binfmt_misc.mount sys-kernel-config.mount dev-mqueue.mount sys-fs-fuse-connections.mount dev-hugepages.mount sys-kernel-debug.mount tmp.mount systemd-shutdownd.socket systemd-initctl.socket lvmetad.socket dmeventd.socket systemd-udevd-control.socket dbus.socket syslog.socket systemd-journald.socket systemd-ask-password-wall.path systemd-ask-password-console.path systemd-random-seed-load.service systemd-update-utmp.service systemd-random-seed-save.service proc-sys-fs-binfmt_misc.automount
Conflicts=umount.target
Before=local-fs.target proc-sys-fs-binfmt_misc.mount sys-kernel-config.mount dev-mqueue.mount sys-fs-fuse-connections.mount dev-hugepages.mount sys-kernel-debug.mount tmp.mount systemd-shutdownd.socket systemd-initctl.socket lvmetad.socket dmeventd.socket systemd-udevd-control.socket dbus.socket syslog.socket systemd-journald.socket systemd-ask-password-wall.path systemd-ask-password-console.path systemd-random-seed-load.service systemd-update-utmp.service systemd-random-seed-save.service proc-sys-fs-binfmt_misc.automount
Description=/
LoadState=loaded
ActiveState=active
SubState=mounted
FragmentPath=/run/systemd/generator/-.mount
SourcePath=/etc/fstab
InactiveExitTimestamp=Mon 2013-06-10 13:19:52 BST
InactiveExitTimestampMonotonic=496666
ActiveEnterTimestamp=Mon 2013-06-10 13:19:52 BST
ActiveEnterTimestampMonotonic=496666
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
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
Where=/
What=/dev/sda1
Options=rw,relatime,rw,data=ordered
Type=ext4
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=16008
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=16008
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=inherit
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSet=18446744073709551615
MountFlags=0
PrivateTmp=no
PrivateNetwork=no
SameProcessGroup=yes
ControlGroupModify=no
ControlGroupPersistent=no
IgnoreSIGPIPE=yes
NoNewPrivileges=no
KillMode=control-group
KillSignal=15
SendSIGKILL=yes
DefaultControlGroup=name=systemd:/system/-.mount
ControlGroups=cpu:/system/-.mount name=systemd:/system/-.mount
-------------- next part --------------
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda1
UUID=c1213d5b-d7c8-468d-a7b1-f8618ed59c4a / ext4 rw,relatime,data=ordered 0 1
-------------- next part --------------
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c1213d5b-d7c8-468d-a7b1-f8618ed59c4a ro
-------------- next part --------------
/etc/systemd/system:
total 20
-rw-r--r-- 1 root root 429 Jun 6 16:43 alsa-restore.service
drwxr-xr-x 2 root root 4096 May 6 08:08 getty.target.wants
-rw-r--r-- 1 root root 1640 May 7 08:33 getty at tty1.service
drwxr-xr-x 2 root root 4096 Jun 9 17:00 multi-user.target.wants
-rw-r--r-- 1 root root 800 Jun 6 16:58 systemd-udevd.service
/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 38 May 6 08:08 getty at tty1.service -> /usr/lib/systemd/system/getty at .service
/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 39 May 6 08:25 dhcpcd at enp0s3.service -> /usr/lib/systemd/system/dhcpcd at .service
lrwxrwxrwx 1 root root 40 May 30 13:55 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
More information about the systemd-devel
mailing list