gpt-generator: Find device on a stateless system
authorTobias Hunger <tobias.hunger@gmail.com>
Fri, 10 Apr 2015 23:52:50 +0000 (01:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 12 Apr 2015 18:00:21 +0000 (20:00 +0200)
commiteafe88e34a0698d2f4ebb747ab4911e35d0dfe4c
treec25f9b1a9407ce4e08e2b6630ab4642c92b722a8
parent9f1a574d50c1ffd19f18805cc8a3a433c4f2da37
gpt-generator: Find device on a stateless system

A stateless system has a tmpfs as root file system. That obviously
does not have any block device associated with it. So try falling back
to the device of the /usr filesystem if the root filesystem fails.
src/gpt-auto-generator/gpt-auto-generator.c