diff options
-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" } |