Re:dhcpleased(8) and resolvd(8) enabled in base, replacing d...
by jasonjayr on Saturday July 17, 2021 @09:54PM
(#27870236)
Yep. Hit that one too.
Learned the hard way the need for the 'nofail' flag in 'fs_mntops' field, which was undocumented in the man page in the early versions ...
Re:dhcpleased(8) and resolvd(8) enabled in base, replacing d...
by Denvercoder9 on Sunday July 18, 2021 @06:13AM
(#27871848)
> Instead it drops to a recovery console, BUT if you use a distro without a 'root' password, it can't drop into the recovery console and you're screwed.
That's indeed an unfortunate situation. systemd allows you to set the SYSTEMD_SULOGIN_FORCE environment variable for the rescue.service to override this behaviour and always give you a rootshell. It's an open bug for the Debian installer to set that variable by default if installing without a root password (#952450).
Re:dhcpleased(8) and resolvd(8) enabled in base, replacing d...
by gigatexal on Sunday July 18, 2021 @02:39AM
(#27871145)
Ok that’s a bit much. Why is SystemD encroaching on the fstab??
Re:dhcpleased(8) and resolvd(8) enabled in base, replacing d...
by Denvercoder9 on Sunday July 18, 2021 @06:18AM
(#27871865)
It's not encroaching on fstab, it's using it as input during boot, because mounting is intimately coupled with service ordering. Think about services that reside on a network filesystem: the network has to be up to mount the filesystem, but the network in turn can require arbitrary services to run, which can require other local filesystems to be mounted. You can't get configurations like these to work without coupling mounting and service ordering.
It's fundamentally not that different from sysvinit, with its various init scripts that mounted filesystems according to the fstab.
Re:dhcpleased(8) and resolvd(8) enabled in base, replacing d...
by jcelerier on Sunday July 18, 2021 @02:56AM
(#27871192)
Because systemd services can depend on mount points or cause mountpoints to come up dynamically, in a way that pure fstab does not support, e.g. for containers. So (as far as I understand) fstab is now simply an input to the actual mount system.
My (least) favorite SystemD gotcha I discovered recently is the way it's taken over 'fstab' in some distros. I think Debian is one of them. When you edit 'fstab', you need to run 'systemctl daemon-reload'. Fine. Whatever. I don't have a huge problem with that.
However, when you try to boot after a disk has been removed from the system, it won't. Instead it drops to a recovery console, BUT if you use a distro without a 'root' password, it can't drop into the recovery console and you're screwed.
The default setup on a lot of Linux distros won't boot if you remove a non-system disk. I like SystemD more than the old init system(s), but there are some really, really dumb decisions that have been made along the way.