summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
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 {