udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / units / dev-hugepages.mount
blob88cd89d56349161cd8b37477944854404098117b
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU Lesser General Public License as published by
7 #  the Free Software Foundation; either version 2.1 of the License, or
8 #  (at your option) any later version.
10 [Unit]
11 Description=Huge Pages File System
12 Documentation=https://docs.kernel.org/admin-guide/mm/hugetlbpage.html
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
14 DefaultDependencies=no
15 Before=sysinit.target
16 ConditionPathExists=/sys/kernel/mm/hugepages
17 ConditionCapability=CAP_SYS_ADMIN
18 ConditionVirtualization=!private-users
20 [Mount]
21 What=hugetlbfs
22 Where=/dev/hugepages
23 Type=hugetlbfs
24 Options=nosuid,nodev