From a367c1d7a8cc185b458e66dc9f936b1e5d82eb5e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 16 May 2018 17:21:29 +0200 Subject: tools/create-gce-image.sh: support MKE2FS_CONFIG --- tools/create-gce-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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 -- cgit mrf-deployment