summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cmd/installer-pc.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh
index 36baef7..bb0410d 100644
--- a/src/cmd/installer-pc.sh
+++ b/src/cmd/installer-pc.sh
@@ -47,14 +47,15 @@ _cmd_installer_pc_make_partition_and_fs()
info "$(get_msg 'cmd_installer_pc_fdisk')"
if ${HAVE_SFDISK}; then
- if ! log="$(printf ',,83,*\n' | ${SFDISK} "${dev}" 2>&1)"; then
+ if ! log="$(printf ',,83,*\n' | ${SFDISK} -- "${dev}" 2>&1)"
+ then
error "$(get_msg 'cmd_installer_pc_fdisk_fail')"
_cmd_installer_pc_log_print 'sfdisk' "${log}"
return 1
fi
elif ${HAVE_FDISK}; then
if ! log="$(printf 'n\np\n1\n\n\nt\n83\na\n1\nw\n' |
- ${FDISK} "${dev}" 2>&1)"; then
+ ${FDISK} -- "${dev}" 2>&1)"; then
error "$(get_msg 'cmd_installer_pc_fdisk_fail')"
_cmd_installer_pc_log_print 'fdisk' "${log}"
return 1
@@ -62,7 +63,7 @@ _cmd_installer_pc_make_partition_and_fs()
fi
info "$(get_msg 'cmd_installer_pc_mkfs')"
- if ! log="$(${MKE2FS} -t ext4 "${dev}1" 2>&1)"; then
+ if ! log="$(${MKE2FS} -t ext4 -- "${dev}1" 2>&1)"; then
error "$(get_msg 'cmd_installer_pc_mkfs_fail')"
_cmd_installer_pc_log_print 'mke2fs' "${log}"
return 1