mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
Fixes a weirdism with $tmp where it is made, but the variable is not
remembered, must be some sort of conflict somewhere.
This commit is contained in:
parent
a56cb03ced
commit
6e33b2be8f
@ -337,6 +337,7 @@ sub home_builder {
|
||||
my ($sec,$min,$hour,$day,$month,$year) = (localtime)[0,1,2,3,4,5];
|
||||
my $time = sprintf("%02d:%02d:%02d-%02d-%02d-%04d",
|
||||
$hour, $min, $sec, $month+1, $day, $year+1900);
|
||||
#print "$time\n";
|
||||
if (!-d "$tmp1/gbootroot_tmp$time") {
|
||||
$tmp = "$tmp1/gbootroot_tmp$time" if err_custom_perl(
|
||||
"mkdir $tmp1/gbootroot_tmp$time",
|
||||
@ -348,6 +349,8 @@ if (!-d "$tmp1/gbootroot_mnt$time") {
|
||||
"gBootRoot: ERROR: Could not make mount directory") != 2;
|
||||
}
|
||||
|
||||
# Why?
|
||||
$tmp = "$tmp1/gbootroot_tmp$time";
|
||||
|
||||
# Verbosity is universal for all methods, and controlled by a scale slider.
|
||||
# Yard
|
||||
@ -1390,7 +1393,8 @@ sub Generate {
|
||||
$ars->{mnt} = $mnt;
|
||||
$ars->{template_dir} = $template_dir; # static right now.
|
||||
ars($ars);
|
||||
|
||||
|
||||
|
||||
my $template = $ars->{template};
|
||||
$root_device = $ars->{device};
|
||||
$root_filename = $ars->{filename};
|
||||
|
Loading…
x
Reference in New Issue
Block a user