Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 89ecc3f

Browse files
committed
v2.5.1
1 parent 82ce6be commit 89ecc3f

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

bootiso

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Author: jules randolph <[email protected]> https://github.com/jsamr
44
# License: MIT
5-
# Version 2.5.0
5+
# Version 2.5.1
66
#
77
# Usage: [<options>...] <file.iso>
88
#
@@ -22,11 +22,11 @@
2222
# Enabled by default when neither -d nor --no-usb-check options are given.
2323
# -J, --no-eject Do not eject device after unmounting.
2424
# -l, --list-usb-drives List available USB drives and exit.
25+
# -M, --no-mime-check bootiso won't assert that selected ISO file has the right mime-type.
2526
# -s, --strict-mime-check Disallow loose application/octet-stream mime type in ISO file.
2627
# -- POSIX end of options.
2728
# --dd Use dd utility and create an iso9660 fs instead of mounting + rsync.
2829
# Does not allow bootloader installation with syslinux.
29-
# --no-mime-check bootiso won't assert that selected ISO file has the right mime-type.
3030
# --no-usb-check bootiso won't assert that selected device is a USB (connected through USB bus).
3131
#
3232
# How it works
@@ -56,7 +56,7 @@ fi
5656

5757
typeset -a commandDependencies=('lsblk' 'sfdisk' 'mkfs' 'blkid' 'wipefs' 'grep' 'file' 'awk' 'mlabel')
5858
typeset -A commandPackages=([lsblk]='util-linux' [sfdisk]='util-linux' [mkfs]='util-linux' [blkid]='util-linux' [wipefs]='util-linux' [grep]='grep' [file]='file' [awk]='gawk' [mlabel]='mtools' [syslinux]='syslinux' [rsync]='rsync')
59-
typeset shortOptions='bydJahls'
59+
typeset shortOptions='bydJahlsM'
6060

6161
typeset selectedDevice
6262
typeset selectedPartition
@@ -82,7 +82,7 @@ typeset autoselect=false
8282
typeset isEndOfOptions=false
8383
typeset strictMimeCheck=false
8484

85-
typeset version="2.5.0"
85+
typeset version="2.5.1"
8686
typeset help_message="\
8787
Usage: $scriptName [<options>...] <file.iso>
8888
@@ -108,11 +108,11 @@ Options
108108
Enabled by default when neither -d nor --no-usb-check options are given.
109109
-J, --no-eject Do not eject device after unmounting.
110110
-l, --list-usb-drives List available USB drives.
111+
-M, --no-mime-check \`$scriptName' won't assert that selected ISO file has the right mime-type.
111112
-s, --strict-mime-check Disallow loose application/octet-stream mime type in ISO file.
112113
-- POSIX end of options.
113114
--dd Use \`dd' utility instead of mounting + \`rsync'.
114115
Does not allow bootloader installation with syslinux.
115-
--no-mime-check \`$scriptName' won't assert that selected ISO file has the right mime-type.
116116
--no-usb-check \`$scriptName' won't assert that selected device is a USB (connected through USB bus).
117117
\\033[0;31mUse at your own risks.\\033[0m
118118
"
@@ -308,6 +308,10 @@ parseOptions() {
308308
echo "$version"
309309
exit 0
310310
;;
311+
-M|--no-mime-check)
312+
disableMimeCheck=true
313+
shift
314+
;;
311315
-s|--strict-mime-check)
312316
strictMimeCheck=true
313317
shift
@@ -317,10 +321,6 @@ parseOptions() {
317321
shouldMakeFAT32Partition=false
318322
shift
319323
;;
320-
--no-mime-check)
321-
disableMimeCheck=true
322-
shift
323-
;;
324324
--no-usb-check)
325325
disableUSBCheck=true
326326
shift

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v2.5.1
2+
3+
- add `-M` alias for `--no-mime-check`
4+
15
# v2.5.0
26

37
- allow loose `application/octet-stream` mime type by default in ISO files

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2-
[![v2.5.0](https://img.shields.io/badge/version-v2.5.0-green.svg)](#)
3-
[![GitHub issues open](https://img.shields.io/github/issues/jsamr/bootiso.svg?maxAge=2592000)](https://github.com/jsamr/bootiso/issues)
2+
[![v2.5.0](https://img.shields.io/badge/version-v2.5.1-green.svg)](#)
3+
[![GitHub issues open](https://img.shields.io/github/issues/jsamr/bootiso.svg?maxAge=0)](https://github.com/jsamr/bootiso/issues)
44
[![Build Status](https://travis-ci.org/jsamr/bootiso.svg?branch=master)](https://travis-ci.org/jsamr/bootiso)
55

66
**Create a USB bootable device from an ISO image easily and [securely](#security).**
@@ -69,9 +69,10 @@ Where `bin-path` is any folder in the `$PATH` environment such as `$HOME/bin`.
6969
| `-a` | `--autoselect` | Enable autoselecting USB devices in conjunction with `-y` option. Autoselect will automatically select a USB drive device if there is exactly one connected to the system. Enabled by default when neither `-d` nor `--no-usb-check` options are given. |
7070
| `-J` | `--no-eject` | Do not eject device after unmounting. |
7171
| `-l` | `--list-usb-drives` | List available USB drives. |
72+
| `-M` | `--no-mime-check` | bootiso won't assert that selected ISO file has the right.` mime-type. |
73+
| `-s` | `--strict-mime-check` | Disallow loose application/octet-stream mime type in ISO file. |
7274
| | `--` | POSIX end of options. |
7375
| | `--dd` | Use dd utility instead of mounting + rsync. Does not allow bootloader installation with syslinux. |
74-
| | `--no-mime-check` | bootiso won't assert that selected ISO file has the right mime-type. |
7576
| | `--no-usb-check` | bootiso won't assert that selected device is a USB (connected through USB bus). Use at your own risks. |
7677

7778
<a name="security" />

0 commit comments

Comments
 (0)