diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-01-26 00:27:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-01-26 00:27:30 +0000 |
commit | e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a (patch) | |
tree | 85ad9a659b6c53d79f40dc3a8ba01e9b20af1a17 /tools | |
parent | e86602f8d64b3e727880ce1619879c58454099dd (diff) | |
download | drakx-backup-do-not-use-e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a.tar drakx-backup-do-not-use-e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a.tar.gz drakx-backup-do-not-use-e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a.tar.bz2 drakx-backup-do-not-use-e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a.tar.xz drakx-backup-do-not-use-e470826c6ef0cc5ee3bc29017f59bc2ffa5e138a.zip |
adapt to mdk-stage1 automatic replacing ks.cfg
Diffstat (limited to 'tools')
-rw-r--r-- | tools/i386/netboot/.cvsignore | 1 | ||||
-rwxr-xr-x | tools/i386/netboot/make_boot_network | 11 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/i386/netboot/.cvsignore b/tools/i386/netboot/.cvsignore index 60db9a42c..568f8e35b 100644 --- a/tools/i386/netboot/.cvsignore +++ b/tools/i386/netboot/.cvsignore @@ -1,2 +1,3 @@ stage1 stage2 +tools/i386/netboot/automatic.para diff --git a/tools/i386/netboot/make_boot_network b/tools/i386/netboot/make_boot_network index a19065aca..b9739c486 100755 --- a/tools/i386/netboot/make_boot_network +++ b/tools/i386/netboot/make_boot_network @@ -4,17 +4,16 @@ type=$1 #[ -z "$type" ] && { echo "usage: $0 <network card type> (eg: 3c59x)" ; exit 1; } [ -z "$type" ] && type=3c90x -ks="../../../install/ks.cfg" -[ -e $ks ] || { echo "missing file $ks, create one based on $ks.default"; exit 1; } - +[ -e automatic.para ] || { echo "missing file automatic.para, create one based on automatic.para.default"; exit 1; } ln -sf stage1.$type stage1 ln -sf stage2.$type stage2 mformat a: -mcopy {menu.lst,stage1,stage2} a: -mcopy $ks a: +mcopy {stage1,stage2} a: +perl -pe 'chomp; $_ .= " " . `cat automatic.para` if /^kernel/; $_ .= "\n"' menu.lst | mcopy - a:menu.lst + ./grub --batch <<EOF -install (fd0)/stage1 d (fd0) (fd0)/stage2 p (fd0)/menu.lst +install (fd0)/stage1 d (fd0) (fd0)/stage2 p (fd0)/menu.lst $automatic EOF |