Re: Running VDR from systemd on Raspberry Pi OS

Martin Dummer <[email protected]> Tue, 27 Dec 2022 23:15:29 +0100
Newsgroups gmane.linux.vdr
Message-ID <[email protected]>
Am 27.12.22 um 21:49 schrieb Marko Mäkelä:
>
> First, I removed the custom /etc/fstab entry. Everything will be
> controlled by systemd as follows:


On systemd-systems, each line  in /etc/fstab is automatically converted
by a binary "systemd-fstab-generator" into "xxx.mount" units. So what
you do here


> sudo tee /etc/systemd/system/video.mount << "EOF"
> [Unit]
> BindsTo=dev-disk-by\x2dlabel-VDR.device
> After=dev-disk-by\x2dlabel-VDR.device
> Requires=systemd-fsck@dev-disk-by\x2dlabel-VDR.service
> After=systemd-fsck@dev-disk-by\x2dlabel-VDR.service
> [Mount]
> Where=/video
> What=/dev/disk/by-label/VDR
> Type=ext4
> Options=defaults,noatime,nofail
> [Install]
> WantedBy=dev-disk-by\x2dlabel-VDR.device
> EOF

is more or less the same as one line in /etc/fstab.

see "man systemd.mount" and "man systemd-fstab-generator"

Just a hint....

Martin


_______________________________________________
vdr mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr