File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
nixos/modules/system/boot/loader/grub Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33use Class::Struct;
44use XML::LibXML;
55use File::Basename;
6- use File::Path;
6+ use File::Path qw( make_path ) ;
77use File::stat ;
88use File::Copy;
99use File::Copy::Recursive qw( rcopy pathrm) ;
@@ -98,7 +98,7 @@ sub runCommand {
9898
9999print STDERR " updating GRUB 2 menu...\n " ;
100100
101- mkpath (" $bootPath /grub" , 0, 0700);
101+ make_path (" $bootPath /grub" , { mode => 0700 } );
102102
103103# Discover whether the bootPath is on the same filesystem as / and
104104# /nix/store. If not, then all kernels and initrds must be copied to
@@ -438,7 +438,7 @@ sub GrubFs {
438438$conf .= " \n " ;
439439
440440my %copied ;
441- mkpath (" $bootPath /kernels" , 0, 0755) if $copyKernels ;
441+ make_path (" $bootPath /kernels" , { mode => 0755 } ) if $copyKernels ;
442442
443443sub copyToKernelsDir {
444444 my ($path ) = @_ ;
@@ -471,7 +471,7 @@ sub addEntry {
471471 my $systemName = basename(Cwd::abs_path(" $path " ));
472472 my $initrdSecretsPath = " $bootPath /kernels/$systemName -secrets" ;
473473
474- mkpath (dirname($initrdSecretsPath ), 0, 0755);
474+ make_path (dirname($initrdSecretsPath ), { mode => 0755 } );
475475 my $oldUmask = umask ;
476476 # Make sure initrd is not world readable (won't work if /boot is FAT)
477477 umask 0137;
You can’t perform that action at this time.
0 commit comments