mirror of
https://github.com/raspberrypi/userland.git
synced 2025-12-06 04:49:12 +00:00
dtoverlay: A dry run needs no config directory
It's useful to be able to perform the dry run on any host, not just a Raspberry Pi with runtime overlay support, and this works once the validity check has been removed.
This commit is contained in:
@@ -257,12 +257,12 @@ int main(int argc, const char **argv)
|
||||
fatal_error("Failed to mount configfs - %d", errno);
|
||||
}
|
||||
|
||||
dt_overlays_dir = sprintf_dup("%s/%s", cfg_dir, DT_OVERLAYS_SUBDIR);
|
||||
if (!dir_exists(dt_overlays_dir))
|
||||
fatal_error("configfs overlays folder not found - incompatible kernel");
|
||||
|
||||
if (!dry_run)
|
||||
{
|
||||
dt_overlays_dir = sprintf_dup("%s/%s", cfg_dir, DT_OVERLAYS_SUBDIR);
|
||||
if (!dir_exists(dt_overlays_dir))
|
||||
fatal_error("configfs overlays folder not found - incompatible kernel");
|
||||
|
||||
state = read_state(work_dir);
|
||||
if (!state)
|
||||
fatal_error("Failed to read state");
|
||||
|
||||
Reference in New Issue
Block a user