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 4230b5cc1e
commit 3159e3767c

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