summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO/BuildBoot.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-09 23:34:24 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-01-10 00:38:35 +0000
commit57060f5254e48a9eead04426803d4f102f2b0a4b (patch)
tree3dc19e87420be8334dd7411c91fdfd8c8984df5b /lib/MGA/DrakISO/BuildBoot.pm
parent63555aa270059488b013e6c802cca64a8d6eebdc (diff)
downloaddrakiso-57060f5254e48a9eead04426803d4f102f2b0a4b.tar
drakiso-57060f5254e48a9eead04426803d4f102f2b0a4b.tar.gz
drakiso-57060f5254e48a9eead04426803d4f102f2b0a4b.tar.bz2
drakiso-57060f5254e48a9eead04426803d4f102f2b0a4b.tar.xz
drakiso-57060f5254e48a9eead04426803d4f102f2b0a4b.zip
Miscellaneous code cleanup.
Diffstat (limited to 'lib/MGA/DrakISO/BuildBoot.pm')
-rw-r--r--lib/MGA/DrakISO/BuildBoot.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/MGA/DrakISO/BuildBoot.pm b/lib/MGA/DrakISO/BuildBoot.pm
index 276217b..c1097de 100644
--- a/lib/MGA/DrakISO/BuildBoot.pm
+++ b/lib/MGA/DrakISO/BuildBoot.pm
@@ -51,11 +51,11 @@ our @EXPORT = qw(prepare_live_system_boot prepare_iso_bootloader);
sub prepare_live_system_boot {
my ($build) = @_;
- my $root = $build->get_system_root;
+ my $root = $build->get_live_root;
# Create a build directory. This will contain all the files we need to
# exist in /boot on the ISO.
- my $boot_dir = $build->get_builddir('boot');
+ my $boot_dir = $build->get_build_dir('boot');
mkdir_p($boot_dir);
# Locate the kernel we want to boot.
@@ -97,14 +97,14 @@ sub prepare_iso_bootloader {
# do that now. We may need some of those files to correctly auto-detect
# the default kernel and initrd.
my $repo_prefix = $build->{settings}{repository} . '/' . $build->{settings}{arch} . '/';
- my $copy_prefix = $build->get_builddir . '/';
+ my $copy_prefix = $build->get_build_dir . '/';
foreach (group_by2(@{$build->{copy_from_repo}})) {
my ($src, $dst) = @$_;
copy_or_link($repo_prefix . $src, $copy_prefix . $dst);
}
# Create a subdirectory to hold the grub2 bootloader.
- my $grub2_dir = $build->get_builddir('boot/grub2');
+ my $grub2_dir = $build->get_build_dir('boot/grub2');
mkdir_p($grub2_dir);
# Locate and copy the default font for the bootloader. If we can't find a
@@ -219,7 +219,7 @@ sub prepare_iso_bootloader {
# Create another build directory. This will contain all the files we need
# to exist in the /EFI directory on the ISO.
- my $efi_root_dir = $build->get_builddir('EFI');
+ my $efi_root_dir = $build->get_build_dir('EFI');
my $efi_boot_dir = $efi_root_dir . '/BOOT';
mkdir_p($efi_boot_dir);
@@ -247,7 +247,7 @@ sub prepare_iso_bootloader {
}
# Create another build directory for temporarily storing the ESP image.
- my $images_dir = $build->get_builddir('images');
+ my $images_dir = $build->get_build_dir('images');
mkdir_p($images_dir);
# Construct an ESP image. This is needed for USB boot.
@@ -394,14 +394,14 @@ sub get_bootloader_timeout {
sub get_default_image {
my ($build, $name) = @_;
- -e ($build->get_builddir('boot') . '/vmlinuz') && '/boot/vmlinuz'
+ -e ($build->get_build_dir('boot') . '/vmlinuz') && '/boot/vmlinuz'
or die "ERROR: no boot image found for '$name' boot entry\n";
}
sub get_default_initrd {
my ($build) = @_;
- -e ($build->get_builddir('boot') . '/initrd.gz') && '/boot/initrd.gz' ||
- -e ($build->get_builddir('boot') . '/all.rdz') && '/boot/all.rdz';
+ -e ($build->get_build_dir('boot') . '/initrd.gz') && '/boot/initrd.gz' ||
+ -e ($build->get_build_dir('boot') . '/all.rdz') && '/boot/all.rdz';
}
sub get_default_append {