ordering cycles with lvm2 init script with inappropriate rc2.d links
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
After switching to systemd, the AppArmor service often fails to start on boot. This seems to happen at least 50% of the times I turn on the system. If I attempt to start the process again after the system is otherwise finished booting, it works fine. I also have another system with the same software configuration but a much slower storage system (HDD instead of SSD) which never suffers from this problem, so I think it is probably a race condition. If I do "systemctl status apparmor", I get the following output:
michael@
● apparmor.service - LSB: AppArmor initialization
Loaded: loaded (/etc/init.
Active: failed (Result: exit-code) since Wed 2015-03-11 21:25:44 EDT; 1min 5s ago
Docs: man:systemd-
Process: 237 ExecStart=
Mar 11 21:25:44 mamarley-laptop apparmor[237]: Skipping profile in /etc/apparmor.
Mar 11 21:25:44 mamarley-laptop apparmor[237]: mkstemp: Read-only file system
Mar 11 21:25:44 mamarley-laptop apparmor[237]: Skipping profile in /etc/apparmor.
Mar 11 21:25:44 mamarley-laptop apparmor[237]: Skipping profile in /etc/apparmor.
Mar 11 21:25:44 mamarley-laptop apparmor[237]: Skipping profile in /etc/apparmor.
Mar 11 21:25:44 mamarley-laptop systemd[1]: apparmor.service: control process exited, code=exited status=123
Mar 11 21:25:44 mamarley-laptop apparmor[237]: ...fail!
Mar 11 21:25:44 mamarley-laptop systemd[1]: Failed to start LSB: AppArmor initialization.
Mar 11 21:25:44 mamarley-laptop systemd[1]: Unit apparmor.service entered failed state.
Mar 11 21:25:44 mamarley-laptop systemd[1]: apparmor.service failed.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: systemd 219-4ubuntu5
ProcVersionSign
Uname: Linux 3.19.0-9-lowlatency x86_64
NonfreeKernelMo
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Mar 11 21:30:08 2015
InstallationDate: Installed on 2014-06-01 (283 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
MachineType: LENOVO 2359CTO
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/21/2014
dmi.bios.vendor: LENOVO
dmi.bios.version: G4ETA2WW (2.62 )
dmi.board.
dmi.board.name: 2359CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 2359CTO
dmi.product.
dmi.sys.vendor: LENOVO
summary: |
- apparmor.service starts before remounting r/w, fails + ordering cycles with early boot images on lvm2.service |
Indeed your dmesg shows that apparmor loads its profiles before the file system gets mounted r/w. Can you please confirm that
systemctl show --no-pager -p After apparmor
includes "local-fs.target"? Does
systemctl list-dependencies local-fs.target
includes "systemd- remount- fs.service" ?
If all that is true, can you please boot with "debug" (in the grub "linux" command line), then do
journalctl -ab > /tmp/debug.txt
and attach /tmp/debug.txt here?