Skip to content

Commit fc6975d

Browse files
committed
9p: steps for 9pfs binary installation in hyperv image
This adds the necessary steps for installation of the 9pfs client to the hyperv image. The binary is installed from a COPR repository. This binary is needed to enable 9P file sharing.
1 parent 375064f commit fc6975d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

createdisk.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,17 @@ EOF
163163
PRE_DOWNLOADED_ADDITIONAL_PACKAGES+=" qemu-user-static-x86"
164164
fi
165165

166-
# Beyond this point, packages added to the ADDITIONAL_PACKAGES variable won’t be installed in the guest
166+
# install 9pfs binary from COPR repo so that it can be used to
167+
# set up 9p file sharing on Windows
168+
if [ "${SNC_GENERATE_WINDOWS_BUNDLE}" != "0" ]; then
169+
${SSH} core@${VM_IP} -- "sudo dnf -y copr enable mskvarla/9pfs"
170+
${SSH} core@${VM_IP} -- "mkdir -p ~/packages && dnf download --downloadonly --downloaddir ~/packages 9pfs --resolve"
171+
${SSH} core@${VM_IP} -- "sudo dnf -y copr disable mskvarla/9pfs"
172+
PRE_DOWNLOADED_ADDITIONAL_PACKAGES+=" 9pfs"
173+
fi
174+
175+
# Beyond this point, packages added to the ADDITIONAL_PACKAGES and PRE_DOWNLOADED_ADDITIONAL_PACKAGES
176+
# variables won’t be installed in the guest
167177
install_additional_packages ${VM_IP}
168178
copy_systemd_units
169179

0 commit comments

Comments
 (0)