diff options
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/make_boot_img b/make_boot_img index 6ef982280..9c1f5e25c 100755 --- a/make_boot_img +++ b/make_boot_img @@ -7,6 +7,8 @@ $instdir = "install"; $ks = "kickstart=floppy" if $type =~ s/_ks//; $mnt = "/mnt/disk"; +$mke2fs = "/sbin/mke2fs -q -m 0 -F"; + if ($>) { $sudo = "sudo"; $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; @@ -39,7 +41,7 @@ sub initrd { __ "$sudo umount $tmp $mnt 2>/dev/null"; _ "dd if=/dev/zero of=$tmp bs=1k count=2000"; - _ "echo y | mke2fs $tmp"; + _ "$mke2fs $tmp"; _ "$sudo mount -t ext2 $tmp $mnt -o loop"; _ "$sudo cp -a $instdir/$inst1/* $mnt"; _ "$sudo cp -f install_${type}_modules/* $mnt/modules/" if -d "install_${type}_modules"; |