Set bootable flag after partition resize

Google Cloud requires this to be set to boot.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-01-04 15:07:23 +00:00
parent cd96152ad0
commit b5e8a5027a

View File

@ -40,6 +40,9 @@ do_fsck_extend_mount()
sfdisk -q --delete "$DRIVE" 2> /dev/null
echo "${START},,83;" | sfdisk -q "$DRIVE"
# set bootable flag
sfdisk -A "$DRIVE" 1
# update status
blockdev --rereadpt $diskdev 2> /dev/null
mdev -s