summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-05-16 14:22:40 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-21 18:47:39 +0200
commit9be346c94eab9de0edc30f08b6c6d070c3a17c79 (patch)
tree6bfc4dcb12616611f9b6b6abdcb0b6df333dcdf9 /src/shared/util.h
parentf67cc036ba92a3c71acb664ed2d548de5827cf1f (diff)
util.c: add in_initrd()
in_initrd() checks, if the stat() for the device for "/" is 1, which it is for the initramfs.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 0af0299dbb..4fccf96a6d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -512,4 +512,5 @@ int can_sleep(const char *type);
bool is_valid_documentation_url(const char *url);
+bool in_initrd(void);
#endif