[mythtv-users] usb mount

James Linder jam at tigger.ws
Mon Jan 1 14:29:30 UTC 2024



> On Jan 1, 2024, at 18:08, Hika van den Hoven <hikavdh at gmail.com> wrote:
> 
> PartLabel=`blkid -o value -s LABEL /dev/${kernel}`

Boot with USB plugged in does not generate a udev event (which might be the original problem !

This works

[Unit]
Description=Mount /Store
After=online.target
Wants=apache2.service
Wants=network-online.target

[Service]
Type=simple
ExecStartPre=bash -c "while [ ! -b /dev/disk/by-label/MYTHTV ]; do sleep 1; done"
ExecStart=mount /dev/disk/by-label/MYTHTV /store

[Install]
WantedBy=multi-user.target

James


More information about the mythtv-users mailing list