diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-01 14:48:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-01 14:48:52 +0000 |
commit | 88e5088ed480a500ad9241555ab71232a067fcb7 (patch) | |
tree | 1b0e3e8cefb7704a8008ba3deb85a0d05b04ba64 /setup-disk.in | |
parent | 4272128af47a8d3b16f34d3ef47bf0b98a41f747 (diff) | |
download | alpine-conf-88e5088ed480a500ad9241555ab71232a067fcb7.zip |
setup-disk: let fdisk create an ms dos signature in case its missing
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in index 4873c7a..5b7a21a 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -183,6 +183,12 @@ useall() { done fi + # 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. + # http://bugs.alpinelinux.org/issues/show/145 + echo "w" | fdisk $rootdisk_dev >/dev/null + # create new partitions (cat <<EOF 0,$boot_size,$boot_part_type,* |