summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-16 23:08:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-16 23:08:46 +0000
commit3b9b604eb1802c5f546bd444dae32e179bbb7d20 (patch)
treeb7b1cdf32f2e12fa65a932f24722e12a89b59bb3 /make_boot_img
parentcc29fc49a0427da3225c4d77f95827bed24073f7 (diff)
downloaddrakx-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar
drakx-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.gz
drakx-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.bz2
drakx-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.xz
drakx-3b9b604eb1802c5f546bd444dae32e179bbb7d20.zip
no_comment
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img10
1 files changed, 6 insertions, 4 deletions
diff --git a/make_boot_img b/make_boot_img
index c6f5431bf..d5f3f5c4a 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -6,7 +6,7 @@
$instdir = "install";
$ks = "kickstart=floppy" if $type =~ s/_ks//;
-$mnt = "/mnt/disk";
+$mnt = "/tmp/drakx_mnt";
$mke2fs = "/sbin/mke2fs -q -m 0 -F -s 1";
if ($>) {
@@ -14,6 +14,11 @@ if ($>) {
$ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
}
+sub __ { print @_, "\n"; system(@_); }
+sub _ { __ @_; $? and die; }
+
+_ "$sudo mkdir $mnt" unless -e $mnt;
+
$install = $ {{
pcmcia => "full-install",
network => "install",
@@ -24,9 +29,6 @@ $install = $ {{
$img =~ /rdz$/ ? initrd($mnt, $img) : msg_boot_img($mnt, $img);
#boot_img($mnt, $img);
-sub __ { print @_, "\n"; system(@_); }
-sub _ { __ @_; $? and die; }
-
sub install_s { _ "strip $_[0]"; _ "$sudo install $_[0] $_[1]" }
sub initrd {