blob: 67cdf10af5a9ef01e6734c4cae804d25849986c8 [file] [log] [blame]
Jan Kundrát7ad22582018-08-22 19:06:45 +02001#!/bin/sh
2
3grep -q systemd.unit=usb-flash.service /proc/cmdline || exit 0
4
5cat > $1/mnt.mount <<EOF
6[Unit]
7Description=Mount USB flash at /mnt
8DefaultDependencies=no
9Conflicts=umount.target
10Before=local-fs.target umount.target
11Requires=systemd-udevd.service
12
13[Mount]
14What=/dev/sda1
15Where=/mnt
16Type=auto
17Options=relatime,nosuid,nodev
18EOF