]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
a7df2d1e | 2 | # |
ca2cab5d LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
ca2cab5d LP |
8 | # (at your option) any later version. |
9 | ||
10 | [Unit] | |
921fc451 | 11 | Description=Load/Save OS Random Seed |
a0f70805 | 12 | Documentation=man:systemd-random-seed.service(8) man:random(4) |
921fc451 | 13 | |
ca2cab5d | 14 | DefaultDependencies=no |
059cc610 | 15 | RequiresMountsFor={{RANDOM_SEED}} |
c35b956d | 16 | Conflicts=shutdown.target |
d6bc8348 | 17 | After=systemd-remount-fs.service |
3af54f9b HS |
18 | Before=first-boot-complete.target shutdown.target |
19 | Wants=first-boot-complete.target | |
921fc451 | 20 | |
04d0f7e9 | 21 | ConditionVirtualization=!container |
fe7f113c | 22 | ConditionPathExists=!/etc/initrd-release |
ca2cab5d LP |
23 | |
24 | [Service] | |
25 | Type=oneshot | |
c35b956d | 26 | RemainAfterExit=yes |
059cc610 ZJS |
27 | ExecStart={{ROOTLIBEXECDIR}}/systemd-random-seed load |
28 | ExecStop={{ROOTLIBEXECDIR}}/systemd-random-seed save | |
26ded557 LP |
29 | |
30 | # This service waits until the kernel's entropy pool is initialized, and may be | |
31 | # used as ordering barrier for service that require an initialized entropy | |
32 | # pool. Since initialization can take a while on entropy-starved systems, let's | |
201632e3 | 33 | # increase the timeout substantially here. |
26ded557 | 34 | TimeoutSec=10min |