]> err.no Git - systemd/commit
util.c: add in_initrd()
authorHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 12:22:40 +0000 (14:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 May 2012 16:47:39 +0000 (18:47 +0200)
commit9be346c94eab9de0edc30f08b6c6d070c3a17c79
tree6bfc4dcb12616611f9b6b6abdcb0b6df333dcdf9
parentf67cc036ba92a3c71acb664ed2d548de5827cf1f
util.c: add in_initrd()

in_initrd() checks, if the stat() for the device for "/" is 1, which it
is for the initramfs.
src/shared/util.c
src/shared/util.h