diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-14 13:37:58 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-14 13:37:58 (EST) |
commit | be415c32325b0d94ffc7a29120b63911433d4403 (patch) | |
tree | 7149aa6c2f49726a22a656b47a58444b4853bbec | |
parent | d3373dcb399c1307f8ccf28edc73aff7adc6d5e3 (diff) |
src/cmd/installer-pc.sh: Use ${HAVE_SFDISK}, ${SFDISK}, etc.
-rw-r--r-- | src/cmd/installer-pc.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh index e011864..5dc0caa 100644 --- a/src/cmd/installer-pc.sh +++ b/src/cmd/installer-pc.sh @@ -90,7 +90,11 @@ cmd_installer_pc_make_partition_and_fs() local dev="${1}" dd if=/dev/zero of="${dev}" bs=512 count=1 - printf 'n\np\n1\n\n\nt\n83\na\n1\nw\n' | fdisk "${dev}" + if ${HAVE_SFDISK}; then + printf ',,83,*\n' | ${SFDISK} "${dev}" + elif ${HAVE_FDISK}; then + printf 'n\np\n1\n\n\nt\n83\na\n1\nw\n' | ${FDISK} "${dev}" + fi ${MKE2FS} -t ext4 "${dev}1" } |