El sáb, 16 may 2026 a las 15:23, Laurent Bercot escribió:
>
> >Though I think Laurent’s aware of this (it has been reported on the irc channel) and has been working on it.
>
> It will take a while for s6-frontend to consistently accept bundle
> names for all operations where it makes sense, but it's on the roadmap.
> We will get there eventually.
Oh? I just tried defining a bundle in a service store, and 's6 live
start/stop' and 's6 set enable/disable/mask' from s6-frontend 0.0.1.1
seem to work fine if I specify a bundle name. What does not work?
> About localmount: this doesn't really answer Guillermo's question,
> but I wrote a tool a few months ago knowing that handling mounts with
> s6-rc would become a necessity at some point:
> https://skarnet.org/software/s6-linux-utils/fstab2s6rc.html
>
> I think it should be part of the answer. If it isn't, then please
> tell me what's missing so I can adapt it to your needs.
Not exactly. As far as I can tell, fstab2s6rc would sort of be the
s6-rc counterpart to systemd's systemd-fstab-generator, and it just
uses the contents of /etc/fstab. If so, then, for example, an entry
for a filesystem that is in LVM logical volume "my-lv" of volume group
"my-vg" might look like:
#fs_spec - fs_file - fs_vfstype - fs_mntopts - fs_freq - fs_passno
/dev/my-vg/my-lv /home ext4 defaults 0 2
Where /dev/my-vg/my-lv would be created by the udev daemon as a
symlink to a block special file in /dev with a dynamic major number,
that will only exist after a 'vgchange -ay' command asks the kernel's
device mapper module (dm-mod) to create it. So, asking s6-rc to start
generated service "mount-home" is going to fail if vgchange hasn't
been called before, and, in a compiled database suitable for the boot
sequence, "mount-home" would really have to depend on other services
that must exist and make sure that vgchange is run. Which fstab2s6rc
probably can't know about and won't be able to figure out just from
looking at /etc/fstab.
However, if /etc/fstab just said:
#fs_spec - fs_file - fs_vfstype - fs_mntopts - fs_freq - fs_passno
/dev/sdb3 /home ext4 defaults 0 2
Then the resulting "mount-home" is probably suitable for inclusion in
the database as-is in this case. That's what I meant with
"situation-dependent".
Thanks,
G.
Received on Sat May 16 2026 - 22:03:33 CEST