Skip to content

Commit

Permalink
Make sure /target gets unmounted.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster authored and clefebvre committed Feb 15, 2022
1 parent 6dc1df3 commit 3248ea0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion usr/lib/live-installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,12 @@ def finish_installation(self):
for partition in self.setup.partitions:
if(partition.mount_as is not None and partition.mount_as != "" and partition.mount_as != "/" and partition.mount_as != "swap"):
self.do_unmount("/target" + partition.mount_as)
self.do_unmount("/target")

# btrfs subvolumes are mounts, but will block unmounting /target. This will
# unmount the submounts also.
cmd = "umount -AR /target"
print("Unmounting the target root: '%s'" % cmd)
self.exec_cmd(cmd)
self.do_unmount("/source")

self.update_progress(0, 0, False, True, _("Installation finished"))
Expand Down

0 comments on commit 3248ea0

Please sign in to comment.