···453 }
454 }
45500000000000456 # is this a stratis fs?
457 my $stableDevPath = findStableDevPath $device;
458 my $stratisPool;
···453 }
454 }
455456+ # Preserve umask (fmask, dmask) settings for vfat filesystems.
457+ # (The default is to mount these world-readable, but that's a security risk
458+ # for the EFI System Partition.)
459+ if ($fsType eq "vfat") {
460+ for (@superOptions) {
461+ if ($_ =~ /fmask|dmask/) {
462+ push @extraOptions, $_;
463+ }
464+ }
465+ }
466+467 # is this a stratis fs?
468 my $stableDevPath = findStableDevPath $device;
469 my $stratisPool;