diff options
author | Mark Pustjens <pustjens@dds.nl> | 2010-03-05 22:19:41 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2010-03-05 22:19:41 +0100 |
commit | aa80222dfd8b99da392236d139517076b3292cf6 (patch) | |
tree | d8dc6654a68543c96a1f274c9b733be3397cc783 | |
parent | 7075c72e1ef816a74eba379ea5450293a60f9f1d (diff) |
add the `-D' option to the sfdisk call.
This causes some extra space to be saved for the MBR, which is needed for grub2 in some cases.
http://www.mail-archive.com/arch-general@archlinux.org/msg11100.html
-rw-r--r-- | src/core/libs/lib-blockdevices-filesystems.sh | 2 | ||||
-rw-r--r-- | tests/runtime/automatic-reuse-fs-sda/install.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index c0fe3ad..e6227b9 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -368,7 +368,7 @@ partition() # invoke sfdisk debug 'FS' "Partition calls: sfdisk $DEVICE -uM >$LOG 2>&1 <<< $sfdisk_input" printk off - sfdisk $DEVICE -uM >$LOG 2>&1 <<EOF + sfdisk -D $DEVICE -uM >$LOG 2>&1 <<EOF $sfdisk_input EOF if [ $? -gt 0 ]; then diff --git a/tests/runtime/automatic-reuse-fs-sda/install.sh b/tests/runtime/automatic-reuse-fs-sda/install.sh index d6ef255..93a650e 100644 --- a/tests/runtime/automatic-reuse-fs-sda/install.sh +++ b/tests/runtime/automatic-reuse-fs-sda/install.sh @@ -1,7 +1,7 @@ #!/bin/sh # sda1 boot, sda2 will be swap, sda3 /, sda4 which will contain the "existing filesystem of the user" with "important data" on it. -sfdisk -uM /dev/sda << EOF +sfdisk -D /dev/sda -uM << EOF ,50,,* ,20,S ,800, |