After executing the pivot-root routines, the (default) /oldroot filesystem gets unmounted
Actual behavior
For EFI-enabled images (e.g. RHEL 8 for ARM/Graviton and RHEL 9.3+ for x86_64), the /boot and/or /boot/efi filesystem-locations are mounted partitions. Currently, the pivot-root logic doesn't account for these filesystem-locations
Suggestions for fix
Add conditional logic to umount the /boot/efi and/or /boot partitions, if present.
Expected behavior
After executing the pivot-root routines, the (default)
/oldroot
filesystem gets unmountedActual behavior
For EFI-enabled images (e.g. RHEL 8 for ARM/Graviton and RHEL 9.3+ for x86_64), the
/boot
and/or/boot/efi
filesystem-locations are mounted partitions. Currently, the pivot-root logic doesn't account for these filesystem-locationsSuggestions for fix
Add conditional logic to
umount
the/boot/efi
and/or/boot
partitions, if present.