mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
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:
parent
4230b5cc1e
commit
3159e3767c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user