Merge pull request #1429 from ogayot/LP#1990239

cdrom: make sure we unmount the cdrom only once
This commit is contained in:
Dan Bungert 2022-09-20 08:39:29 -06:00 committed by GitHub
commit 5c636acc30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class AptConfigurer:
await self.unmount(
Mountpoint(mountpoint=target_mnt.p('cdrom')),
remove=False)
remove=True)
os.rmdir(target_mnt.p('cdrom'))
await _restore_dir('etc/apt')