pmb: install: unbreak rsync option (MR 2311)

Fixes "UnboundLocalError: cannot access local variable 'filesystem'
where it is not associated with a value".
This commit is contained in:
Val Packett 2024-05-18 01:53:35 -03:00 committed by Oliver Smith
parent 9252400292
commit 1b2024e7d8
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def format_and_mount_root(args, device, root_label, disk):
pmb.chroot.root(args, ["mkdir", "-p", mountpoint])
pmb.chroot.root(args, ["mount", device, mountpoint])
if filesystem == "btrfs":
if not args.rsync and filesystem == "btrfs":
# Make flat btrfs subvolume layout
prepare_btrfs_subvolumes(args, device, mountpoint)