Fix sysmerge(8) waiting if the system is not upgraded.

This commit is contained in:
Jonas 'Sortie' Termansen 2025-02-17 22:44:03 +01:00
parent 069f3b3887
commit e79a641500

View file

@ -217,12 +217,12 @@ int main(int argc, char* argv[])
bool has_system = !access_join_or_die(target, "tix/manifest/system", F_OK);
if ( wait_default )
wait = has_system && !access_join_or_die(target, "etc/fstab", F_OK);
if ( !has_system )
system = false;
if ( wait_default )
wait = system && !access_join_or_die(target, "etc/fstab", F_OK);
struct conf conf;
conf_init(&conf);
char* conf_path = join_paths(target, "etc/upgrade.conf");