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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user