1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

hibernate-resume: refuse to run outside of an initrd

This commit is contained in:
Lennart Poettering 2014-08-28 20:24:12 +02:00
parent 202aea456d
commit ac528e3e3b

View File

@ -46,6 +46,10 @@ int main(int argc, char *argv[]) {
umask(0022);
/* Refuse to run unless we are in an initrd() */
if (!in_initrd())
return EXIT_SUCCESS;
device = argv[1];
if (stat(device, &st) < 0) {