Commit 88e5088e authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-disk: let fdisk create an ms dos signature in case its missing

parent 4272128a
......@@ -183,6 +183,12 @@ useall() {
# new disks does not have an DOS signature in sector 0
# this makes sfdisk complain. We can workaround this by letting
# fdisk create that DOS signature, by just do a "w", a write.
echo "w" | fdisk $rootdisk_dev >/dev/null
# create new partitions
(cat <<EOF
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment