summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-27 23:02:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-27 23:02:24 +0000
commit8e5acf09aedf65e8562be5dfda61d45c5ce0c17e (patch)
tree4167ff10a0ba343723094cc4fccab854c9a1efb1
parentd3e84c4b9e1b442d70d64c51cd556350323dc614 (diff)
downloaddrakx-8e5acf09aedf65e8562be5dfda61d45c5ce0c17e.tar
drakx-8e5acf09aedf65e8562be5dfda61d45c5ce0c17e.tar.gz
drakx-8e5acf09aedf65e8562be5dfda61d45c5ce0c17e.tar.bz2
drakx-8e5acf09aedf65e8562be5dfda61d45c5ce0c17e.tar.xz
drakx-8e5acf09aedf65e8562be5dfda61d45c5ce0c17e.zip
short name for rdz's on floppy
-rwxr-xr-xmake_boot_img7
1 files changed, 4 insertions, 3 deletions
diff --git a/make_boot_img b/make_boot_img
index 21cf2f3bd..a9ff44501 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -186,9 +186,10 @@ sub boot_img_i386 {
my $rdz = $img; $rdz =~ s/\.img/.rdz/;
initrd("${mnt}2", $rdz) if !-e $rdz;
- eval { _ "cp -f $rdz $mnt/$type.rdz" };
+ my $short_type = substr($type, 0, 8);
+ eval { _ "cp -f $rdz $mnt/$short_type.rdz" };
if ($@) {
- unlink "$mnt/$type.rdz";
+ unlink "$mnt/$short_type.rdz";
my $avail = (split ' ', `df $mnt`)[-3];
my $s = int((-s $rdz) / 1024);
die sprintf("not enough room for $rdz: need %dKB (available %dKB < needed %dKB)\n", $s - $avail, $avail, $s);
@@ -207,7 +208,7 @@ F3 boot.msg
my $args = $args_callback ? $args_callback->($_->[1]) : $_->[1];
"label $_->[0]
kernel vmlinuz
- append initrd=$type.rdz $args
+ append initrd=$short_type.rdz $args
" } entries_append($type));
_ "sync";