diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-09-03 16:42:59 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-09-03 16:42:59 +0200 |
| commit | 98bfd6d34cf1dfe8b9638f88017f331e06325c25 (patch) | |
| tree | ef9cbfd15e1d21ff86fbbc539554451dba5f2408 /tools | |
| parent | ffd18c6443b683c4a6a320e7fb5fadca90541612 (diff) | |
tools/create-gce-image.sh: add default ext4 options
Set some realistic modern ext4 options when creating the image.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/create-gce-image.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index 0793bd411..177c208ee 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -92,7 +92,7 @@ fi echo -en "o\nn\np\n1\n\n\na\nw\n" | sudo fdisk $DISKDEV PARTDEV=$DISKDEV"p1" until [ -e $PARTDEV ]; do sleep 1; done -sudo -E mkfs.ext4 $PARTDEV +sudo -E mkfs.ext4 -O ^resize_inode,has_journal,ext_attr,extents,huge_file,flex_bg,dir_nlink,sparse_super $PARTDEV mkdir -p disk.mnt CLEANUP="rm -rf disk.mnt; $CLEANUP" sudo mount $PARTDEV disk.mnt |
