diff --git a/common b/common index 35467027f..af6cb55bc 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 35467027f657de76aca34b48a6f23e9608b23a57 +Subproject commit af6cb55bc58a2b7f8d5a58c0f12870c3b8066ef2 diff --git a/fish/fish.c b/fish/fish.c index 23d9bb94f..19e3d2799 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -476,6 +476,9 @@ main (int argc, char *argv[]) /* If we've got drives to add, add them now. */ add_drives (drvs); + if (key_store_requires_network (ks) && guestfs_set_network (g, 1) == -1) + exit (EXIT_FAILURE); + /* If we've got mountpoints or prepared drives or -i option, we must * launch the guest and mount them. */ diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 77c534828..3c6d57bde 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -348,6 +348,10 @@ main (int argc, char *argv[]) /* Do the guest drives and mountpoints. */ add_drives (drvs); + + if (key_store_requires_network (ks) && guestfs_set_network (g, 1) == -1) + exit (EXIT_FAILURE); + if (guestfs_launch (g) == -1) exit (EXIT_FAILURE); if (inspector)