]> git.ipfire.org Git - thirdparty/systemd.git/commit
call chase_symlinks without the /sysroot prefix (#6411)
authorHarald Hoyer <harald@hoyer.xyz>
Thu, 20 Jul 2017 17:13:09 +0000 (19:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Jul 2017 17:13:09 +0000 (13:13 -0400)
commit98eda38aed6a10c4f6d6ad0cac6e5361e87de52b
tree4cd26c16a4f8b771339ef9b90db62a7e5b3f277c
parent39bd1fdf7a3dc21ee4be6effa864b6f734c3010e
call chase_symlinks without the /sysroot prefix (#6411)

In case fstab-generator is called in the initrd, chase_symlinks()
returns with a canonical path "/sysroot/sysroot/<mountpoint>", if the
"/sysroot" prefix is present in the path.

This patch skips the "/sysroot" prefix for the chase_symlinks() call,
because "/sysroot" is already the root directory and chase_symlinks()
prepends the root directory in the canonical path returned.
src/fstab-generator/fstab-generator.c