diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-16 17:21:29 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-16 17:21:29 +0200 |
| commit | a367c1d7a8cc185b458e66dc9f936b1e5d82eb5e (patch) | |
| tree | c9bde299e12b619e5304d841d724539f93719d88 /tools/create-gce-image.sh | |
| parent | 9e377df0c78e9818763164950b5727aaea82da44 (diff) | |
tools/create-gce-image.sh: support MKE2FS_CONFIG
Diffstat (limited to 'tools/create-gce-image.sh')
| -rwxr-xr-x | tools/create-gce-image.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index be1d0c889..11ed6559e 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -21,6 +21,7 @@ # then its contents will be appended to the image /etc/sysctl.conf. # If SYZ_CMDLINE_FILE env var is set and points to a file, # then its contents will be appended to the kernel command line. +# If MKE2FS_CONFIG env var is set, it will affect invoked mkfs.ext4. # # Outputs are (in the current dir): # - disk.raw: the image @@ -71,7 +72,7 @@ sudo qemu-nbd -c /dev/nbd0 --format=raw disk.raw CLEANUP="sudo qemu-nbd -d /dev/nbd0; $CLEANUP" echo -en "o\nn\np\n1\n\n\na\nw\n" | sudo fdisk /dev/nbd0 until [ -e /dev/nbd0p1 ]; do sleep 1; done -sudo mkfs.ext4 /dev/nbd0p1 +sudo -E mkfs.ext4 /dev/nbd0p1 mkdir -p disk.mnt CLEANUP="rm -rf disk.mnt; $CLEANUP" sudo mount /dev/nbd0p1 disk.mnt |
