#include "options.h"
-static void do_decrypt (void);
-
/* Global that saves the root device between inspect_mount and
* print_inspect_prompt.
*/
void
inspect_mount (void)
{
- do_decrypt ();
+ inspect_do_decrypt ();
char **roots = guestfs_inspect_os (g);
if (roots == NULL)
root = roots[0];
free (roots);
+ inspect_mount_root (root);
+}
+
+void
+inspect_mount_root (const char *root)
+{
char **mountpoints = guestfs_inspect_get_mountpoints (g, root);
if (mountpoints == NULL)
exit (EXIT_FAILURE);
* for Fedora whole-disk encryption. WIP to make this work for other
* encryption schemes.
*/
-static void
-do_decrypt (void)
+void
+inspect_do_decrypt (void)
{
char **partitions = guestfs_list_partitions (g);
if (partitions == NULL)
need_rescan = 1;
}
+ free (type);
}
free_strings (partitions);