From b9303682553d2b87e357266025573f00488ef52c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 3 Jun 2004 15:25:52 +0000 Subject: add a rule to build bootcdrom.iso (useful for providing an updated stage1) --- make_boot_img | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'make_boot_img') diff --git a/make_boot_img b/make_boot_img index 744988eab..a9eea94a2 100755 --- a/make_boot_img +++ b/make_boot_img @@ -72,7 +72,9 @@ foreach my $img (@images) { system("/bin/cp -f move/isolinux/* $tftpboot/move 2>/dev/null"); } } elsif ($img =~ /boot.iso/) { - boot_iso($img); + boot_iso($img, 0); + } elsif ($img =~ /bootcdrom.iso/) { + boot_iso($img, 1); } elsif ($img =~ /drivers/) { drivers($type, $I, "$img-$_") foreach @kernels; rename("$img-$main", $img); @@ -784,10 +786,14 @@ EOF } sub boot_iso { - my ($iso) = @_; + my ($iso, $bootcdrom) = @_; my $cfg = cat_('isolinux/isolinux.cfg') or die 'isolinux missing'; - $cfg =~ s/automatic=method:\w+,?//gm; + if ($bootcdrom) { + $cfg =~ s/(automatic=method:\w+)/changedisk $1/gm; + } else { + $cfg =~ s/(automatic=method:\w+)//gm; + } eval { rm_rf('.boot_iso') }; mkdir_p('.boot_iso/isolinux'); -- cgit v1.2.1