From f0181458b3ecb8f22f530a4178d7189bf5af4f32 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 25 Sep 2008 16:54:23 +0000 Subject: pass opts to grub functions --- draklive | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'draklive') diff --git a/draklive b/draklive index a90583a..f681b64 100755 --- a/draklive +++ b/draklive @@ -742,15 +742,15 @@ sub build_syslinux_cfg { } sub build_grub_cfg { - my ($live, $media, $device) = @_; + my ($live, $media, $opts, $device) = @_; #- FIXME? first partition is hardcoded for loopback (master images) my ($part_nb) = $device =~ m!/dev/loop! ? 1 : $device =~ /(\d+)$/; my $initrd = get_initrd_path($media); - build_grub_cfg_raw($live, $initrd, $part_nb); + build_grub_cfg_raw($live, $initrd, $opts, $part_nb); } sub build_grub_cfg_raw { - my ($live, $initrd, $part_nb) = @_; + my ($live, $initrd, $opts, $part_nb) = @_; #- FIXME: use the bootloader module from drakx my $grub_part = "(hd0" . (defined $part_nb ? "," . ($part_nb-1) : "") . ")"; my $boot = get_media_prefix($live, 'boot'); #- FIXME handle boot media @@ -1198,7 +1198,7 @@ $live->{media}{title} sub create_classical_bootloader { my ($live) = @_; my $part_nb = 1; #- FIXME: get from partition layout config - output_p(get_system_root($live) . '/boot/grub/menu.lst', build_grub_cfg_raw($live, "/initrd.img", $part_nb)); + output_p(get_system_root($live) . '/boot/grub/menu.lst', build_grub_cfg_raw($live, "/initrd.img", $opts, $part_nb)); } sub device_allocate_file { @@ -1439,7 +1439,7 @@ sub install_usb_bootloader { # and get_bootloader_path (when copying) mkdir_p($live->{mnt} . $media_boot . '/grub'); cp_f(get_builddir($live) . $live->{prefix}{build}{boot} . '/gfxmenu', $live->{mnt} . $media_boot); - output_p($live->{mnt} . $media_boot . '/grub/menu.lst', build_grub_cfg($live, $media, $device)); + output_p($live->{mnt} . $media_boot . '/grub/menu.lst', build_grub_cfg($live, $media, $opts, $device)); unlink $grub_device_map; } -- cgit v1.2.1