Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Andrei Borzenkov
29.10.2024 10:03, Adam Nielsen wrote: I tried using RequiresMountsFor=/mnt/share however again, if it runs too early in the boot process the mount is not there and the unit fails to start, and is not retried (logs just say "Job myservice.service/start failed with result 'dependency'.") Requires

Re: [systemd-devel] Masking mount units

2024-10-29 Thread Dan Nicholson
On Tue, Oct 29, 2024 at 6:28 AM Phillip Susi wrote: > > So if you want to prevent automounting entirely you have to... open the > disk device read only and take the bsd lock, and hold it until after > closing the write file descriptor? Plus probably a little more time to > give udev a chance to t

Re: [systemd-devel] system is not match systemd.link configs

2024-10-29 Thread Henti Smith
On Tue, 29 Oct 2024 at 15:00, Mantas Mikulėnas wrote: > On Tue, Oct 29, 2024, 09:51 Henti Smith wrote: > >> On Mon, 28 Oct 2024 at 19:17, Mantas Mikulėnas wrote: >> >>> On Mon, Oct 28, 2024 at 8:54 PM Henti Smith >>> wrote: >>> Where can I find detailed information on where to find the na

Re: [systemd-devel] system is not match systemd.link configs

2024-10-29 Thread Mantas Mikulėnas
On Tue, Oct 29, 2024, 09:51 Henti Smith wrote: > On Mon, 28 Oct 2024 at 19:17, Mantas Mikulėnas wrote: > >> On Mon, Oct 28, 2024 at 8:54 PM Henti Smith >> wrote: >> >>> Where can I find detailed information on where to find the names when >>> systemd-udevd sees the interface for the first time

Re: [systemd-devel] Masking mount units

2024-10-29 Thread Phillip Susi
Lennart Poettering writes: > It prevents it fully. However, udev installs an inotify watch on all > relevant block devices, which watches for IN_CLOSE_WRITE events, and > then triggers the device again. IN_CLOSE_WRITE is the event that is > generated when an inode is closed after it was open for

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Henti Smith
On Tue, 29 Oct 2024 at 02:50, Adam Nielsen wrote: > Hi all, > > I'm having some problems getting a systemd unit to start during system > boot. Can anyone advise what I'm doing wrong? > > The service starts fine if I run `systemctl start myservice`, the issue > is that it fails to start during bo

Re: [systemd-devel] system is not match systemd.link configs

2024-10-29 Thread Henti Smith
On Mon, 28 Oct 2024 at 19:17, Mantas Mikulėnas wrote: > On Mon, Oct 28, 2024 at 8:54 PM Henti Smith > wrote: > >> Where can I find detailed information on where to find the names when >> systemd-udevd sees the interface for the first time ? >> > > At that point, they are just the original kernel

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Mantas Mikulėnas
On Tue, Oct 29, 2024 at 4:50 AM Adam Nielsen wrote: > Hi all, > > I'm having some problems getting a systemd unit to start during system > boot. Can anyone advise what I'm doing wrong? > > The service starts fine if I run `systemctl start myservice`, the issue > is that it fails to start during

Re: [systemd-devel] system is not match systemd.link configs

2024-10-29 Thread Andrei Borzenkov
On Mon, Oct 28, 2024 at 10:17 PM Mantas Mikulėnas wrote: > > For example, maybe: > Property=DEVPATH=/devices/pci:00/:00:11.0/:06:00.0/net/eth* Does Property accept wildcards? Manual does not mention it, only selected directives are described as accepting "shell style globs". > If n

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Adam Nielsen
> > I tried using RequiresMountsFor=/mnt/share however again, if it runs too > > early in the boot process the mount is not there and the unit fails to > > start, and is not retried (logs just say "Job myservice.service/start > > failed with result 'dependency'.") > > RequiresMountsFor only works