fstab-generator: use path_equal() to detect alternate spellings of /usr

In the initrd we would treat e.g. "/usr/" as different from "/usr", which
doesn't seem right.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-07-15 15:48:05 +02:00
parent 911017f052
commit efc5fd3d72
+1 -1
View File
@@ -188,7 +188,7 @@ static bool mount_in_initrd(struct mntent *me) {
assert(me);
return fstab_test_option(me->mnt_opts, "x-initrd.mount\0") ||
streq(me->mnt_dir, "/usr");
path_equal(me->mnt_dir, "/usr");
}
static int write_timeout(