fstab-generator: properly report the source of data
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Jul 2022 10:46:18 +0000 (12:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jul 2022 13:48:05 +0000 (15:48 +0200)
commit7772c177b811e534bd4351e103a56e320e5b699a
treeb74e4119c7a64fab93e54c625b2348da76f00d18
parentefc5fd3d72b51a7c32822f19515d0624b7a286e0
fstab-generator: properly report the source of data

Mount information can come from /etc/fstab, /sysroot/etc/fstab, and
/proc/cmdline. Even when we had the path to the right source handy, we would
often write something inaccurate. In particular, in the initrd, we would
generally write "/etc/fstab" instead of "/sysroot/etc/fstab" for no good
reason.
src/fstab-generator/fstab-generator.c