Public bug reported:
Scenario:
Trying a lot of different ways to disable plymouth, I find system
shutdown to print "umount: / busy" on reboot/shutdown, with a subsequent
forced fsck at boot.
Current status of disable project is adding plymouth.enable=0 to
GRUB_CMDLINE_LINUX in /etc/default/grub and mv'ing every plymouth*.conf
to plymouth*.conf.disabled in /etc/init/
Adding /usr/bin/lsof / to the relevant method in /etc/init.d/umountroot
tells me that dhclient and dnsmasq still use /
This sounds like the works of NetworkManager.
/etc/init/network-manager has a clause to start (among others) and stop
on dbus. I assume that starting dbus fails when plymouth (by not being
enabled) fails to start early, and I assume that this means that the
dbus upstart job doesn't have a relevant PID to stop it later, which
means that it fails to take down NetworkManager, which fails to take
down the dhclient and dnsmasq instances, prompting those to keep
running, thus preventing / to be umounted (problem could, however, also
be the clause "respawn" in /etc/init/network-manager.conf).
In any event, at shutdown, dhclient and dnsmasq are active, leading to
unclean umount of /.
Now, disabling plymouth is a common use case, and the convoluted and
non-documented interdependencies of upstart scripts makes this a
nightmare that has, does and will cause data loss to users.
Adding /usr/bin/killall dnsmasq and /usr/bin/killall dhclient to the
relevant method in /etc/init.d/umountroot will fix this crudely, but any
acceptable fix will involve decoupling upstart scripts (and
/etc/init.d/umountroot) to a sufficient degree to make sure that the
system is actually "shut-downable". A suggestion could be a cursory
attendance at a "Systems Architecture 101" at some suitable online
course purveyor.
I am not all that familiar with systemd, but if the goal is to ditch
sysv init, one might want to go with something designed by professionals
instead of raving madmen...
** Affects: upstart (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1080818
Title:
Sanitize and decouple dependencies - cover all scenarios
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1080818/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs