diff options
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-x | images/make_boot_img | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/images/make_boot_img b/images/make_boot_img index c6bf57436..08adbb697 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -4,6 +4,7 @@ use Config; use FileHandle; use MDK::Common; use POSIX; +use Carp; Config->import; my ($arch) = $Config{archname} =~ /(.*?)-/; @@ -25,7 +26,8 @@ if ($>) { } sub __ { print @_, "\n"; system(@_) } -sub _ { __ @_; $? and die } +sub _ { __ @_; $? and croak "'" . join(' ', @_) . "failed ($?)\n" } + sub mke2fs { my ($f) = @_; _ "/sbin/mke2fs -q -m 0 -F -s 1 $f"; |