Richard W.M. Jones
5441d3dd0c
daemon: inspect: Remove duplicate root mountpoints in /etc/fstab
...
A customer case was found where /etc/fstab contained multiple root
mountpoints, something like:
LABEL=System / xfs ...
LABEL=Boot /boot ext2 ...
LABEL=System / xfs ...
This causes libguestfs and virt-v2v to fail. Either (on RHEL 9) we
try to mount the second instance of / which gives an error. Or (on
upstream kernels) we are able to mount the second instance but then
libguestfs gets confused when trying to unmount them.
In this case as the mounted devices are the same we can just delete
the duplicate. It's also possible that there could be multiple
non-identical root mountpoints, in which case we have to pick one, and
this code arbitrarily picks the first[*] (but emits a warning).
We don't do anything for non-root mountpoints.
Update common submodule to add 'List.same' function from mlstdutils.
[*] Which one is "the first" depends on what version of ocaml-augeas
we are using. ocaml-augeas version 0.6 Augeas.matches function
returns entries in reverse order (compared to augeas itself). This is
fixed in version 0.7:
http://git.annexia.org/?p=ocaml-augeas.git;a=commitdiff;h=b703b92e3d26690aa6f7b822132049ce5435983e
Fixes: https://issues.redhat.com/browse/RHEL-90168
2025-05-08 21:14:23 +01:00
..
2022-03-09 09:28:02 +00:00
2019-05-30 09:12:32 +02:00
2017-07-27 17:31:41 +01:00
2022-08-16 10:39:01 +01:00
2014-04-16 12:01:17 +01:00
2017-07-27 22:31:22 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2013-07-29 14:37:50 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-07-10 17:01:59 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2022-06-17 13:24:19 +01:00
2016-01-22 09:12:17 +00:00
2022-08-16 10:39:01 +01:00
2016-07-26 10:43:45 +01:00
2022-08-16 10:39:01 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2018-02-06 17:27:23 +01:00
2018-02-06 17:27:23 +01:00
2025-02-16 17:00:46 +00:00
2021-03-16 11:24:37 +00:00
2017-09-16 22:27:16 +01:00
2018-01-09 12:17:53 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-08-08 17:50:23 +01:00
2014-11-26 16:15:47 +00:00
2025-02-16 17:00:46 +00:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2025-02-16 17:00:46 +00:00
2017-07-10 17:01:59 +01:00
2025-02-16 17:00:46 +00:00
2018-04-19 11:30:29 +02:00
2016-07-26 10:43:45 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-03-11 13:40:14 +00:00
2016-07-26 10:43:45 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2015-10-27 17:25:49 +00:00
2017-07-27 17:31:41 +01:00
2025-04-28 10:07:34 +01:00
2025-02-16 17:00:46 +00:00
2016-02-04 11:25:56 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-09-16 22:27:16 +01:00
2022-08-16 10:39:01 +01:00
2025-02-16 17:00:46 +00:00
2025-05-08 21:14:23 +01:00
2025-02-16 17:00:46 +00:00
2025-03-03 14:22:37 +00:00
2025-02-16 17:00:46 +00:00
2025-04-29 19:05:07 +01:00
2025-02-16 17:00:46 +00:00
2025-03-03 14:22:37 +00:00
2025-02-16 17:00:46 +00:00
2025-03-03 14:22:37 +00:00
2025-03-03 14:22:37 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-04-16 10:28:41 +01:00
2016-04-12 20:59:40 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2014-10-23 19:03:11 +02:00
2017-07-27 17:31:41 +01:00
2024-10-22 11:02:38 +01:00
2025-02-16 17:00:46 +00:00
2021-05-13 12:04:41 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2021-09-07 14:53:06 +01:00
2025-02-16 17:00:46 +00:00
2025-04-16 21:12:49 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-04-16 21:12:49 +01:00
2025-02-16 17:00:46 +00:00
2025-04-22 12:37:40 +01:00
2021-11-09 10:20:37 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-03-03 11:32:37 +00:00
2014-10-23 19:03:11 +02:00
2017-07-27 17:31:41 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-08-08 17:50:23 +01:00
2025-02-16 17:00:46 +00:00
2013-02-12 17:09:44 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2022-05-03 10:54:00 +02:00
2025-02-16 17:00:46 +00:00
2022-05-26 10:16:21 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2023-04-27 15:22:02 +01:00
2020-07-30 13:58:35 +01:00
2017-07-27 17:31:41 +01:00
2025-02-16 17:00:46 +00:00
2025-02-19 12:01:10 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 17:31:41 +01:00
2017-07-10 17:01:59 +01:00
2025-02-16 17:00:46 +00:00
2014-11-05 14:50:54 +00:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00
2017-07-27 22:31:22 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2018-05-15 11:15:54 +01:00
2015-07-02 16:08:44 +01:00
2025-02-16 17:00:46 +00:00
2024-05-10 16:07:20 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2014-10-23 19:03:11 +02:00
2015-10-05 14:28:33 +01:00
2025-02-16 17:00:46 +00:00
2021-03-30 12:56:58 +01:00
2024-10-18 21:55:21 +01:00
2025-02-16 17:00:46 +00:00
2017-07-27 17:31:41 +01:00