]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Use existence of /etc/initrd-release to detect initrd.
authorNeilBrown <neilb@suse.de>
Mon, 13 Mar 2023 03:42:58 +0000 (14:42 +1100)
committerJes Sorensen <jes@trained-monkey.org>
Sun, 19 Mar 2023 16:33:16 +0000 (12:33 -0400)
commiteb45d0add7cf2918f838bec2d93d99cf2d9c662f
tree43ca938fff7fa3cd5ed84ed4e932d16301fddf54
parent566844b93e6823a04ed65827ba3e03cb123b3a03
Use existence of /etc/initrd-release to detect initrd.

Since v183, systemd has used the existence of /etc/initrd-release to
detect if it is running in an initrd, rather than looking at the magic
number of the root filesystem's device.  It is time for mdadm to do the
same.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
util.c