plus3it / spel

STIG-Partitioned Enterprise Linux (spel)
Other
91 stars 61 forks source link

[BUG] The pivot-root script may not properly handle filesystems mounted at/under `/boot` #649

Closed ferricoxide closed 6 months ago

ferricoxide commented 7 months ago

Expected behavior

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.