Skip to content

Commit

Permalink
photon-os-installer: ostreeinstaller: Fix tmp mountpoint
Browse files Browse the repository at this point in the history
- tmp mountpoint inside deployment is broken symlink
  causing failure in tmpfs mount command.
- Fixed it by creating symlink before doing mount

Change-Id: Iab1d585151616e4fbe3a9c4890996082f79eb3b8
Signed-off-by: Ankit Jain <ankitja@vmware.com>
  • Loading branch information
jaankit committed Oct 25, 2023
1 parent 43fbb5c commit cc4ecce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photon_installer/ostreeinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ def install(self):
commit_number = self.get_commit_number(self.ostree_ref)
self.do_systemd_tmpfiles_commands(commit_number)

self.run_lambdas([lambda: self.mount_devices_in_deployment(commit_number)], "mounting done")
deployment = os.path.join(self.photon_root, f"ostree/deploy/photon/deploy/{commit_number}.0/")
self.create_symlink_directory(deployment)
self.run_lambdas([lambda: self.mount_devices_in_deployment(commit_number)], "mounting done")

if os.path.exists(loader1):
cmd = []
Expand Down

0 comments on commit cc4ecce

Please sign in to comment.