|
@ -945,6 +945,10 @@ sub advanced_kernel_section { |
|
|
|
|
|
|
|
|
} # end sub advanced_kernel_section |
|
|
} # end sub advanced_kernel_section |
|
|
|
|
|
|
|
|
|
|
|
# Stuff univeral for all root filesystem methods |
|
|
|
|
|
# Compression, UML Kernel, and Method only need to be known by the Dock. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub Generate { |
|
|
sub Generate { |
|
|
|
|
|
|
|
|
# @entry_advanced |
|
|
# @entry_advanced |
|
@ -955,14 +959,11 @@ sub Generate { |
|
|
# 3 = Root Device |
|
|
# 3 = Root Device |
|
|
# 4 = Root Filename |
|
|
# 4 = Root Filename |
|
|
# 5 = UML Kernel |
|
|
# 5 = UML Kernel |
|
|
# 6 = Method |
|
|
$method = $entry_advanced[6]; # 6 = Method |
|
|
$method = $entry_advanced[6]; |
|
|
|
|
|
# 7 = Template |
|
|
# 7 = Template |
|
|
# $root_device_size; |
|
|
# $root_device_size; |
|
|
# $filesystem_size; |
|
|
# $filesystem_size; |
|
|
|
|
|
|
|
|
# Stuff univeral for all root filesystem methods |
|
|
|
|
|
# Compression, UML Kernel, and Method only need to be known by the Dock. |
|
|
|
|
|
my $ars = { "device" => $entry_advanced[3], |
|
|
my $ars = { "device" => $entry_advanced[3], |
|
|
"device_size" => $root_device_size, |
|
|
"device_size" => $root_device_size, |
|
|
"filename" => $entry_advanced[4], |
|
|
"filename" => $entry_advanced[4], |
|
@ -1938,7 +1939,7 @@ sub initrd { |
|
|
if (!-d "$tmp/initrd_mnt") { |
|
|
if (!-d "$tmp/initrd_mnt") { |
|
|
return if errmk(sys("mkdir $tmp/initrd_mnt")) == 2; |
|
|
return if errmk(sys("mkdir $tmp/initrd_mnt")) == 2; |
|
|
} |
|
|
} |
|
|
return if errmk(sys("mount -o loop -t ext2 $tmp/$initrd $tmp/initrd_mnt")) |
|
|
return if errm(sys("mount -o loop -t ext2 $tmp/$initrd $tmp/initrd_mnt")) |
|
|
== 2; |
|
|
== 2; |
|
|
pb($I,4); |
|
|
pb($I,4); |
|
|
|
|
|
|
|
|