summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive b/draklive
index 666a799..4060db8 100755
--- a/draklive
+++ b/draklive
@@ -742,7 +742,8 @@ sub build_syslinux_cfg {
sub build_grub_cfg {
my ($live, $media, $device) = @_;
- my ($part_nb) = $device =~ /(\d+)$/;
+ #- 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);
}